difit 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +9 -13
- package/README.ko.md +3 -7
- package/README.md +3 -7
- package/README.zh.md +9 -13
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.test.js +49 -2
- package/dist/client/assets/index-Bz9yRRZ7.css +1 -0
- package/dist/client/assets/index-D-ytcgYk.js +215 -0
- package/dist/client/assets/{prism-csharp-BTkEzOdP.js → prism-csharp-C6507-_U.js} +1 -1
- package/dist/client/assets/{prism-java-B6gV82l4.js → prism-java-Dv0G_qSp.js} +1 -1
- package/dist/client/assets/{prism-php-gnpy0VQF.js → prism-php-CshMHvWJ.js} +1 -1
- package/dist/client/assets/{prism-ruby-CMkpRodx.js → prism-ruby-qC3LGMgv.js} +1 -1
- package/dist/client/assets/{prism-solidity-BDXCWkss.js → prism-solidity-DbdYT-uq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +9 -2
- package/dist/client/assets/index-BtavrLIu.css +0 -1
- package/dist/client/assets/index-Bx2n4Aep.js +0 -210
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))o(p);new MutationObserver(p=>{for(const h of p)if(h.type==="childList")for(const S of h.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&o(S)}).observe(document,{childList:!0,subtree:!0});function f(p){const h={};return p.integrity&&(h.integrity=p.integrity),p.referrerPolicy&&(h.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?h.credentials="include":p.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(p){if(p.ep)return;p.ep=!0;const h=f(p);fetch(p.href,h)}})();function ng(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Es={exports:{}},Bn={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Rd;function tb(){if(Rd)return Bn;Rd=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(o,p,h){var S=null;if(h!==void 0&&(S=""+h),p.key!==void 0&&(S=""+p.key),"key"in p){h={};for(var T in p)T!=="key"&&(h[T]=p[T])}else h=p;return p=h.ref,{$$typeof:r,type:o,key:S,ref:p!==void 0?p:null,props:h}}return Bn.Fragment=c,Bn.jsx=f,Bn.jsxs=f,Bn}var Dd;function lb(){return Dd||(Dd=1,Es.exports=tb()),Es.exports}var s=lb(),Ns={exports:{}},ye={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var zd;function ab(){if(zd)return ye;zd=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),b=Symbol.iterator;function _(x){return x===null||typeof x!="object"?null:(x=b&&x[b]||x["@@iterator"],typeof x=="function"?x:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function C(x,q,I){this.props=x,this.context=q,this.refs=N,this.updater=I||B}C.prototype.isReactComponent={},C.prototype.setState=function(x,q){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,q,"setState")},C.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function y(){}y.prototype=C.prototype;function j(x,q,I){this.props=x,this.context=q,this.refs=N,this.updater=I||B}var U=j.prototype=new y;U.constructor=j,E(U,C.prototype),U.isPureReactComponent=!0;var F=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},se=Object.prototype.hasOwnProperty;function ne(x,q,I,K,le,re){return I=re.ref,{$$typeof:r,type:x,key:q,ref:I!==void 0?I:null,props:re}}function pe(x,q){return ne(x.type,q,void 0,void 0,void 0,x.props)}function oe(x){return typeof x=="object"&&x!==null&&x.$$typeof===r}function ce(x){var q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(I){return q[I]})}var P=/\/+/g;function ie(x,q){return typeof x=="object"&&x!==null&&x.key!=null?ce(""+x.key):q.toString(36)}function W(){}function z(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(W,W):(x.status="pending",x.then(function(q){x.status==="pending"&&(x.status="fulfilled",x.value=q)},function(q){x.status==="pending"&&(x.status="rejected",x.reason=q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function ee(x,q,I,K,le){var re=typeof x;(re==="undefined"||re==="boolean")&&(x=null);var J=!1;if(x===null)J=!0;else switch(re){case"bigint":case"string":case"number":J=!0;break;case"object":switch(x.$$typeof){case r:case c:J=!0;break;case A:return J=x._init,ee(J(x._payload),q,I,K,le)}}if(J)return le=le(x),J=K===""?"."+ie(x,0):K,F(le)?(I="",J!=null&&(I=J.replace(P,"$&/")+"/"),ee(le,q,I,"",function(it){return it})):le!=null&&(oe(le)&&(le=pe(le,I+(le.key==null||x&&x.key===le.key?"":(""+le.key).replace(P,"$&/")+"/")+J)),q.push(le)),1;J=0;var me=K===""?".":K+":";if(F(x))for(var he=0;he<x.length;he++)K=x[he],re=me+ie(K,he),J+=ee(K,q,I,re,le);else if(he=_(x),typeof he=="function")for(x=he.call(x),he=0;!(K=x.next()).done;)K=K.value,re=me+ie(K,he++),J+=ee(K,q,I,re,le);else if(re==="object"){if(typeof x.then=="function")return ee(z(x),q,I,K,le);throw q=String(x),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return J}function O(x,q,I){if(x==null)return x;var K=[],le=0;return ee(x,K,"","",function(re){return q.call(I,re,le++)}),K}function Q(x){if(x._status===-1){var q=x._result;q=q(),q.then(function(I){(x._status===0||x._status===-1)&&(x._status=1,x._result=I)},function(I){(x._status===0||x._status===-1)&&(x._status=2,x._result=I)}),x._status===-1&&(x._status=0,x._result=q)}if(x._status===1)return x._result.default;throw x._result}var V=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function te(){}return ye.Children={map:O,forEach:function(x,q,I){O(x,function(){q.apply(this,arguments)},I)},count:function(x){var q=0;return O(x,function(){q++}),q},toArray:function(x){return O(x,function(q){return q})||[]},only:function(x){if(!oe(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},ye.Component=C,ye.Fragment=f,ye.Profiler=p,ye.PureComponent=j,ye.StrictMode=o,ye.Suspense=m,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ye.__COMPILER_RUNTIME={__proto__:null,c:function(x){return $.H.useMemoCache(x)}},ye.cache=function(x){return function(){return x.apply(null,arguments)}},ye.cloneElement=function(x,q,I){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var K=E({},x.props),le=x.key,re=void 0;if(q!=null)for(J in q.ref!==void 0&&(re=void 0),q.key!==void 0&&(le=""+q.key),q)!se.call(q,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&q.ref===void 0||(K[J]=q[J]);var J=arguments.length-2;if(J===1)K.children=I;else if(1<J){for(var me=Array(J),he=0;he<J;he++)me[he]=arguments[he+2];K.children=me}return ne(x.type,le,void 0,void 0,re,K)},ye.createContext=function(x){return x={$$typeof:S,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},ye.createElement=function(x,q,I){var K,le={},re=null;if(q!=null)for(K in q.key!==void 0&&(re=""+q.key),q)se.call(q,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(le[K]=q[K]);var J=arguments.length-2;if(J===1)le.children=I;else if(1<J){for(var me=Array(J),he=0;he<J;he++)me[he]=arguments[he+2];le.children=me}if(x&&x.defaultProps)for(K in J=x.defaultProps,J)le[K]===void 0&&(le[K]=J[K]);return ne(x,re,void 0,void 0,null,le)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(x){return{$$typeof:T,render:x}},ye.isValidElement=oe,ye.lazy=function(x){return{$$typeof:A,_payload:{_status:-1,_result:x},_init:Q}},ye.memo=function(x,q){return{$$typeof:g,type:x,compare:q===void 0?null:q}},ye.startTransition=function(x){var q=$.T,I={};$.T=I;try{var K=x(),le=$.S;le!==null&&le(I,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(te,V)}catch(re){V(re)}finally{$.T=q}},ye.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ye.use=function(x){return $.H.use(x)},ye.useActionState=function(x,q,I){return $.H.useActionState(x,q,I)},ye.useCallback=function(x,q){return $.H.useCallback(x,q)},ye.useContext=function(x){return $.H.useContext(x)},ye.useDebugValue=function(){},ye.useDeferredValue=function(x,q){return $.H.useDeferredValue(x,q)},ye.useEffect=function(x,q,I){var K=$.H;if(typeof I=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(x,q)},ye.useId=function(){return $.H.useId()},ye.useImperativeHandle=function(x,q,I){return $.H.useImperativeHandle(x,q,I)},ye.useInsertionEffect=function(x,q){return $.H.useInsertionEffect(x,q)},ye.useLayoutEffect=function(x,q){return $.H.useLayoutEffect(x,q)},ye.useMemo=function(x,q){return $.H.useMemo(x,q)},ye.useOptimistic=function(x,q){return $.H.useOptimistic(x,q)},ye.useReducer=function(x,q,I){return $.H.useReducer(x,q,I)},ye.useRef=function(x){return $.H.useRef(x)},ye.useState=function(x){return $.H.useState(x)},ye.useSyncExternalStore=function(x,q,I){return $.H.useSyncExternalStore(x,q,I)},ye.useTransition=function(){return $.H.useTransition()},ye.version="19.1.0",ye}var Md;function zs(){return Md||(Md=1,Ns.exports=ab()),Ns.exports}var H=zs();const Gn=ng(H);var As={exports:{}},Hn={},ws={exports:{}},Ts={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ld;function nb(){return Ld||(Ld=1,function(r){function c(O,Q){var V=O.length;O.push(Q);e:for(;0<V;){var te=V-1>>>1,x=O[te];if(0<p(x,Q))O[te]=Q,O[V]=x,V=te;else break e}}function f(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Q=O[0],V=O.pop();if(V!==Q){O[0]=V;e:for(var te=0,x=O.length,q=x>>>1;te<q;){var I=2*(te+1)-1,K=O[I],le=I+1,re=O[le];if(0>p(K,V))le<x&&0>p(re,K)?(O[te]=re,O[le]=V,te=le):(O[te]=K,O[I]=V,te=I);else if(le<x&&0>p(re,V))O[te]=re,O[le]=V,te=le;else break e}}return Q}function p(O,Q){var V=O.sortIndex-Q.sortIndex;return V!==0?V:O.id-Q.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var S=Date,T=S.now();r.unstable_now=function(){return S.now()-T}}var m=[],g=[],A=1,b=null,_=3,B=!1,E=!1,N=!1,C=!1,y=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function F(O){for(var Q=f(g);Q!==null;){if(Q.callback===null)o(g);else if(Q.startTime<=O)o(g),Q.sortIndex=Q.expirationTime,c(m,Q);else break;Q=f(g)}}function $(O){if(N=!1,F(O),!E)if(f(m)!==null)E=!0,se||(se=!0,ie());else{var Q=f(g);Q!==null&&ee($,Q.startTime-O)}}var se=!1,ne=-1,pe=5,oe=-1;function ce(){return C?!0:!(r.unstable_now()-oe<pe)}function P(){if(C=!1,se){var O=r.unstable_now();oe=O;var Q=!0;try{e:{E=!1,N&&(N=!1,j(ne),ne=-1),B=!0;var V=_;try{t:{for(F(O),b=f(m);b!==null&&!(b.expirationTime>O&&ce());){var te=b.callback;if(typeof te=="function"){b.callback=null,_=b.priorityLevel;var x=te(b.expirationTime<=O);if(O=r.unstable_now(),typeof x=="function"){b.callback=x,F(O),Q=!0;break t}b===f(m)&&o(m),F(O)}else o(m);b=f(m)}if(b!==null)Q=!0;else{var q=f(g);q!==null&&ee($,q.startTime-O),Q=!1}}break e}finally{b=null,_=V,B=!1}Q=void 0}}finally{Q?ie():se=!1}}}var ie;if(typeof U=="function")ie=function(){U(P)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,z=W.port2;W.port1.onmessage=P,ie=function(){z.postMessage(null)}}else ie=function(){y(P,0)};function ee(O,Q){ne=y(function(){O(r.unstable_now())},Q)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(O){O.callback=null},r.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<O?Math.floor(1e3/O):5},r.unstable_getCurrentPriorityLevel=function(){return _},r.unstable_next=function(O){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var V=_;_=Q;try{return O()}finally{_=V}},r.unstable_requestPaint=function(){C=!0},r.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var V=_;_=O;try{return Q()}finally{_=V}},r.unstable_scheduleCallback=function(O,Q,V){var te=r.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,O){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=V+x,O={id:A++,callback:Q,priorityLevel:O,startTime:V,expirationTime:x,sortIndex:-1},V>te?(O.sortIndex=V,c(g,O),f(m)===null&&O===f(g)&&(N?(j(ne),ne=-1):N=!0,ee($,V-te))):(O.sortIndex=x,c(m,O),E||B||(E=!0,se||(se=!0,ie()))),O},r.unstable_shouldYield=ce,r.unstable_wrapCallback=function(O){var Q=_;return function(){var V=_;_=Q;try{return O.apply(this,arguments)}finally{_=V}}}}(Ts)),Ts}var Ud;function ib(){return Ud||(Ud=1,ws.exports=nb()),ws.exports}var _s={exports:{}},at={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Bd;function rb(){if(Bd)return at;Bd=1;var r=zs();function c(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},p=Symbol.for("react.portal");function h(m,g,A){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:b==null?null:""+b,children:m,containerInfo:g,implementation:A}}var S=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,at.createPortal=function(m,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(c(299));return h(m,g,null,A)},at.flushSync=function(m){var g=S.T,A=o.p;try{if(S.T=null,o.p=2,m)return m()}finally{S.T=g,o.p=A,o.d.f()}},at.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(m,g))},at.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},at.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var A=g.as,b=T(A,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?o.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:_,fetchPriority:B}):A==="script"&&o.d.X(m,{crossOrigin:b,integrity:_,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},at.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=T(g.as,g.crossOrigin);o.d.M(m,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(m)},at.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,b=T(A,g.crossOrigin);o.d.L(m,A,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},at.preloadModule=function(m,g){if(typeof m=="string")if(g){var A=T(g.as,g.crossOrigin);o.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(m)},at.requestFormReset=function(m){o.d.r(m)},at.unstable_batchedUpdates=function(m,g){return m(g)},at.useFormState=function(m,g,A){return S.H.useFormState(m,g,A)},at.useFormStatus=function(){return S.H.useHostTransitionStatus()},at.version="19.1.0",at}var Hd;function ub(){if(Hd)return _s.exports;Hd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),_s.exports=rb(),_s.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var qd;function sb(){if(qd)return Hn;qd=1;var r=ib(),c=zs(),f=ub();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function S(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(h(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return T(n),e;if(i===a)return T(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,d=n.child;d;){if(d===l){u=!0,l=n,a=i;break}if(d===a){u=!0,a=n,l=i;break}d=d.sibling}if(!u){for(d=i.child;d;){if(d===l){u=!0,l=i,a=n;break}if(d===a){u=!0,a=i,l=n;break}d=d.sibling}if(!u)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),j=Symbol.for("react.consumer"),U=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case $:return"Suspense";case se:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case U:return(e.displayName||"Context")+".Provider";case j:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:z(e.type)||"Memo";case pe:t=e._payload,e=e._init;try{return z(e(t))}catch{}}return null}var ee=Array.isArray,O=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},te=[],x=-1;function q(e){return{current:e}}function I(e){0>x||(e.current=te[x],te[x]=null,x--)}function K(e,t){x++,te[x]=e.current,e.current=t}var le=q(null),re=q(null),J=q(null),me=q(null);function he(e,t){switch(K(J,t),K(re,e),K(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rd(t),e=ud(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(le),K(le,e)}function it(){I(le),I(re),I(J)}function Ba(e){e.memoizedState!==null&&K(me,e);var t=le.current,l=ud(t,e.type);t!==l&&(K(re,e),K(le,l))}function Jl(e){re.current===e&&(I(le),I(re)),me.current===e&&(I(me),Dn._currentValue=V)}var Ha=Object.prototype.hasOwnProperty,kl=r.unstable_scheduleCallback,Il=r.unstable_cancelCallback,or=r.unstable_shouldYield,Yn=r.unstable_requestPaint,At=r.unstable_now,be=r.unstable_getCurrentPriorityLevel,Te=r.unstable_ImmediatePriority,Ye=r.unstable_UserBlockingPriority,et=r.unstable_NormalPriority,Ol=r.unstable_LowPriority,Zn=r.unstable_IdlePriority,cr=r.log,Bg=r.unstable_setDisableYieldValue,qa=null,dt=null;function il(e){if(typeof cr=="function"&&Bg(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(qa,e)}catch{}}var gt=Math.clz32?Math.clz32:Gg,Hg=Math.log,qg=Math.LN2;function Gg(e){return e>>>=0,e===0?32:31-(Hg(e)/qg|0)|0}var Xn=256,Vn=4194304;function Rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Rl(a):(u&=d,u!==0?n=Rl(u):l||(l=d&~e,l!==0&&(n=Rl(l))))):(d=a&~i,d!==0?n=Rl(d):u!==0?n=Rl(u):l||(l=a&~e,l!==0&&(n=Rl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gs(){var e=Xn;return Xn<<=1,(Xn&4194048)===0&&(Xn=256),e}function Ys(){var e=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),e}function fr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ya(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zg(e,t,l,a,n,i){var u=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,v=e.expirationTimes,D=e.hiddenUpdates;for(l=u&~l;0<l;){var G=31-gt(l),X=1<<G;d[G]=0,v[G]=-1;var M=D[G];if(M!==null)for(D[G]=null,G=0;G<M.length;G++){var L=M[G];L!==null&&(L.lane&=-536870913)}l&=~X}a!==0&&Zs(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function Zs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Xs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-gt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function dr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vs(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Td(e.type))}function Xg(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var rl=Math.random().toString(36).slice(2),tt="__reactFiber$"+rl,rt="__reactProps$"+rl,Wl="__reactContainer$"+rl,hr="__reactEvents$"+rl,Vg="__reactListeners$"+rl,Qg="__reactHandles$"+rl,Qs="__reactResources$"+rl,Za="__reactMarker$"+rl;function pr(e){delete e[tt],delete e[rt],delete e[hr],delete e[Vg],delete e[Qg]}function Pl(e){var t=e[tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Wl]||l[tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=fd(e);e!==null;){if(l=e[tt])return l;e=fd(e)}return t}e=l,l=e.parentNode}return null}function ea(e){if(e=e[tt]||e[Wl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Xa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ta(e){var t=e[Qs];return t||(t=e[Qs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Za]=!0}var Fs=new Set,$s={};function Dl(e,t){la(e,t),la(e+"Capture",t)}function la(e,t){for($s[e]=t,e=0;e<t.length;e++)Fs.add(t[e])}var Fg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ks={},Js={};function $g(e){return Ha.call(Js,e)?!0:Ha.call(Ks,e)?!1:Fg.test(e)?Js[e]=!0:(Ks[e]=!0,!1)}function Fn(e,t,l){if($g(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function $n(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var br,Is;function aa(e){if(br===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);br=t&&t[1]||"",Is=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+br+e+Is}var yr=!1;function mr(e,t){if(!e||yr)return"";yr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(L){var M=L}Reflect.construct(e,[],X)}else{try{X.call()}catch(L){M=L}e.call(X.prototype)}}else{try{throw Error()}catch(L){M=L}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(L){if(L&&M&&typeof L.stack=="string")return[L.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],d=i[1];if(u&&d){var v=u.split(`
|
|
44
|
-
`),D=d.split(`
|
|
45
|
-
`);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<D.length&&!D[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===D.length)for(a=v.length-1,n=D.length-1;1<=a&&0<=n&&v[a]!==D[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==D[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==D[n]){var G=`
|
|
46
|
-
`+v[a].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=a&&0<=n);break}}}finally{yr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?aa(l):""}function Kg(e){switch(e.tag){case 26:case 27:case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return mr(e.type,!1);case 11:return mr(e.type.render,!1);case 1:return mr(e.type,!0);case 31:return aa("Activity");default:return""}}function Ws(e){try{var t="";do t+=Kg(e),e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ps(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jg(e){var t=Ps(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){a=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(u){a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kn(e){e._valueTracker||(e._valueTracker=Jg(e))}function eo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ps(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ig=/[\n"\\]/g;function Tt(e){return e.replace(Ig,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vr(e,t,l,a,n,i,u,d){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?xr(e,u,wt(t)):l!=null?xr(e,u,wt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+wt(d):e.removeAttribute("name")}function to(e,t,l,a,n,i,u,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+wt(l):"",t=t!=null?""+wt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u)}function xr(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+wt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function lo(e,t,l){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+wt(l):""}function ao(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(ee(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=wt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Wg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function no(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Wg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function io(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&no(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&no(e,i,t[i])}function Sr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function In(e){return eh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Er=null;function Nr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ra=null,ua=null;function ro(e){var t=ea(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(o(90));vr(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&eo(a)}break e;case"textarea":lo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var Ar=!1;function uo(e,t,l){if(Ar)return e(t,l);Ar=!0;try{var a=e(t);return a}finally{if(Ar=!1,(ra!==null||ua!==null)&&(Li(),ra&&(t=ra,e=ua,ua=ra=null,ro(t),e)))for(t=0;t<e.length;t++)ro(e[t])}}function Va(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wr=!1;if(Xt)try{var Qa={};Object.defineProperty(Qa,"passive",{get:function(){wr=!0}}),window.addEventListener("test",Qa,Qa),window.removeEventListener("test",Qa,Qa)}catch{wr=!1}var ul=null,Tr=null,Wn=null;function so(){if(Wn)return Wn;var e,t=Tr,l=t.length,a,n="value"in ul?ul.value:ul.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[i-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Pn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ei(){return!0}function oo(){return!1}function ut(e){function t(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ei:oo,this.isPropagationStopped=oo,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),t}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ti=ut(zl),Fa=A({},zl,{view:0,detail:0}),th=ut(Fa),_r,jr,$a,li=A({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$a&&($a&&e.type==="mousemove"?(_r=e.screenX-$a.screenX,jr=e.screenY-$a.screenY):jr=_r=0,$a=e),_r)},movementY:function(e){return"movementY"in e?e.movementY:jr}}),co=ut(li),lh=A({},li,{dataTransfer:0}),ah=ut(lh),nh=A({},Fa,{relatedTarget:0}),Cr=ut(nh),ih=A({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),rh=ut(ih),uh=A({},zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sh=ut(uh),oh=A({},zl,{data:0}),fo=ut(oh),ch={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dh[e])?!!t[e]:!1}function kr(){return gh}var hh=A({},Fa,{key:function(e){if(e.key){var t=ch[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(e){return e.type==="keypress"?Pn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ph=ut(hh),bh=A({},li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),go=ut(bh),yh=A({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr}),mh=ut(yh),vh=A({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),xh=ut(vh),Sh=A({},li,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Eh=ut(Sh),Nh=A({},zl,{newState:0,oldState:0}),Ah=ut(Nh),wh=[9,13,27,32],Or=Xt&&"CompositionEvent"in window,Ka=null;Xt&&"documentMode"in document&&(Ka=document.documentMode);var Th=Xt&&"TextEvent"in window&&!Ka,ho=Xt&&(!Or||Ka&&8<Ka&&11>=Ka),po=" ",bo=!1;function yo(e,t){switch(e){case"keyup":return wh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function _h(e,t){switch(e){case"compositionend":return mo(t);case"keypress":return t.which!==32?null:(bo=!0,po);case"textInput":return e=t.data,e===po&&bo?null:e;default:return null}}function jh(e,t){if(sa)return e==="compositionend"||!Or&&yo(e,t)?(e=so(),Wn=Tr=ul=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ho&&t.locale!=="ko"?null:t.data;default:return null}}var Ch={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ch[e.type]:t==="textarea"}function xo(e,t,l,a){ra?ua?ua.push(a):ua=[a]:ra=a,t=Yi(t,"onChange"),0<t.length&&(l=new ti("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ja=null,Ia=null;function kh(e){td(e,0)}function ai(e){var t=Xa(e);if(eo(t))return e}function So(e,t){if(e==="change")return t}var Eo=!1;if(Xt){var Rr;if(Xt){var Dr="oninput"in document;if(!Dr){var No=document.createElement("div");No.setAttribute("oninput","return;"),Dr=typeof No.oninput=="function"}Rr=Dr}else Rr=!1;Eo=Rr&&(!document.documentMode||9<document.documentMode)}function Ao(){Ja&&(Ja.detachEvent("onpropertychange",wo),Ia=Ja=null)}function wo(e){if(e.propertyName==="value"&&ai(Ia)){var t=[];xo(t,Ia,e,Nr(e)),uo(kh,t)}}function Oh(e,t,l){e==="focusin"?(Ao(),Ja=t,Ia=l,Ja.attachEvent("onpropertychange",wo)):e==="focusout"&&Ao()}function Rh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(Ia)}function Dh(e,t){if(e==="click")return ai(t)}function zh(e,t){if(e==="input"||e==="change")return ai(t)}function Mh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:Mh;function Wa(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ha.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function To(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _o(e,t){var l=To(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=To(l)}}function jo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Co(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Lh=Xt&&"documentMode"in document&&11>=document.documentMode,oa=null,Mr=null,Pa=null,Lr=!1;function ko(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lr||oa==null||oa!==Jn(a)||(a=oa,"selectionStart"in a&&zr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pa&&Wa(Pa,a)||(Pa=a,a=Yi(Mr,"onSelect"),0<a.length&&(t=new ti("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=oa)))}function Ml(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ca={animationend:Ml("Animation","AnimationEnd"),animationiteration:Ml("Animation","AnimationIteration"),animationstart:Ml("Animation","AnimationStart"),transitionrun:Ml("Transition","TransitionRun"),transitionstart:Ml("Transition","TransitionStart"),transitioncancel:Ml("Transition","TransitionCancel"),transitionend:Ml("Transition","TransitionEnd")},Ur={},Oo={};Xt&&(Oo=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Ll(e){if(Ur[e])return Ur[e];if(!ca[e])return e;var t=ca[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Oo)return Ur[e]=t[l];return e}var Ro=Ll("animationend"),Do=Ll("animationiteration"),zo=Ll("animationstart"),Uh=Ll("transitionrun"),Bh=Ll("transitionstart"),Hh=Ll("transitioncancel"),Mo=Ll("transitionend"),Lo=new Map,Br="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Br.push("scrollEnd");function zt(e,t){Lo.set(e,t),Dl(t,[e])}var Uo=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var l=Uo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ws(t)},Uo.set(e,t),t)}return{value:e,source:t,stack:Ws(t)}}var jt=[],fa=0,Hr=0;function ni(){for(var e=fa,t=Hr=fa=0;t<e;){var l=jt[t];jt[t++]=null;var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var i=jt[t];if(jt[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Bo(l,n,i)}}function ii(e,t,l,a){jt[fa++]=e,jt[fa++]=t,jt[fa++]=l,jt[fa++]=a,Hr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function qr(e,t,l,a){return ii(e,t,l,a),ri(e)}function da(e,t){return ii(e,null,null,t),ri(e)}function Bo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-gt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function ri(e){if(50<wn)throw wn=0,Qu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ga={};function qh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,l,a){return new qh(e,t,l,a)}function Gr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vt(e,t){var l=e.alternate;return l===null?(l=pt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ho(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ui(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")Gr(e)&&(u=1);else if(typeof e=="string")u=Yp(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=pt(31,l,t,n),e.elementType=oe,e.lanes=i,e;case E:return Ul(l.children,n,i,t);case N:u=8,n|=24;break;case C:return e=pt(12,l,t,n|2),e.elementType=C,e.lanes=i,e;case $:return e=pt(13,l,t,n),e.elementType=$,e.lanes=i,e;case se:return e=pt(19,l,t,n),e.elementType=se,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case y:case U:u=10;break e;case j:u=9;break e;case F:u=11;break e;case ne:u=14;break e;case pe:u=16,a=null;break e}u=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=pt(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Ul(e,t,l,a){return e=pt(7,e,a,t),e.lanes=l,e}function Yr(e,t,l){return e=pt(6,e,null,t),e.lanes=l,e}function Zr(e,t,l){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ha=[],pa=0,si=null,oi=0,Ct=[],kt=0,Bl=null,Qt=1,Ft="";function Hl(e,t){ha[pa++]=oi,ha[pa++]=si,si=e,oi=t}function qo(e,t,l){Ct[kt++]=Qt,Ct[kt++]=Ft,Ct[kt++]=Bl,Bl=e;var a=Qt;e=Ft;var n=32-gt(a)-1;a&=~(1<<n),l+=1;var i=32-gt(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,Qt=1<<32-gt(t)+n|l<<n|a,Ft=i+e}else Qt=1<<i|l<<n|a,Ft=e}function Xr(e){e.return!==null&&(Hl(e,1),qo(e,1,0))}function Vr(e){for(;e===si;)si=ha[--pa],ha[pa]=null,oi=ha[--pa],ha[pa]=null;for(;e===Bl;)Bl=Ct[--kt],Ct[kt]=null,Ft=Ct[--kt],Ct[kt]=null,Qt=Ct[--kt],Ct[kt]=null}var nt=null,Be=null,we=!1,ql=null,Ut=!1,Qr=Error(o(519));function Gl(e){var t=Error(o(418,""));throw ln(_t(t,e)),Qr}function Go(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[tt]=e,t[rt]=a,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<_n.length;l++)Ee(_n[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),to(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Kn(t);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),ao(t,a.value,a.defaultValue,a.children),Kn(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||id(t.textContent,l)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=Zi),t=!0):t=!1,t||Gl(e)}function Yo(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:nt=nt.return}}function en(e){if(e!==nt)return!1;if(!we)return Yo(e),we=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ss(e.type,e.memoizedProps)),l=!l),l&&Be&&Gl(e),Yo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Be=Lt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Be=null}}else t===27?(t=Be,Nl(e.type)?(e=ds,ds=null,Be=e):Be=t):Be=nt?Lt(e.stateNode.nextSibling):null;return!0}function tn(){Be=nt=null,we=!1}function Zo(){var e=ql;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),ql=null),e}function ln(e){ql===null?ql=[e]:ql.push(e)}var Fr=q(null),Yl=null,$t=null;function sl(e,t,l){K(Fr,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=Fr.current,I(Fr)}function $r(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Kr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var v=0;v<t.length;v++)if(d.context===t[v]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),$r(i.return,l,e),a||(u=null);break e}i=d.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(o(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),$r(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function an(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(o(387));if(u=u.memoizedProps,u!==null){var d=n.type;ht(n.pendingProps.value,u.value)||(e!==null?e.push(d):e=[d])}}else if(n===me.current){if(u=n.alternate,u===null)throw Error(o(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Dn):e=[Dn])}n=n.return}e!==null&&Kr(t,e,l,a),t.flags|=262144}function ci(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zl(e){Yl=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Xo(Yl,e)}function fi(e,t){return Yl===null&&Zl(e),Xo(e,t)}function Xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(o(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var Gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Yh=r.unstable_scheduleCallback,Zh=r.unstable_NormalPriority,Ve={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jr(){return{controller:new Gh,data:new Map,refCount:0}}function nn(e){e.refCount--,e.refCount===0&&Yh(Zh,function(){e.controller.abort()})}var rn=null,Ir=0,ba=0,ya=null;function Xh(e,t){if(rn===null){var l=rn=[];Ir=0,ba=Pu(),ya={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ir++,t.then(Vo,Vo),t}function Vo(){if(--Ir===0&&rn!==null){ya!==null&&(ya.status="fulfilled");var e=rn;rn=null,ba=0,ya=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Qo=O.S;O.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xh(e,t),Qo!==null&&Qo(e,t)};var Xl=q(null);function Wr(){var e=Xl.current;return e!==null?e:De.pooledCache}function di(e,t){t===null?K(Xl,Xl.current):K(Xl,t.pool)}function Fo(){var e=Wr();return e===null?null:{parent:Ve._currentValue,pool:e}}var un=Error(o(460)),$o=Error(o(474)),gi=Error(o(542)),Pr={then:function(){}};function Ko(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hi(){}function Jo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(hi,hi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e;default:if(typeof t.status=="string")t.then(hi,hi);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e}throw sn=t,un}}var sn=null;function Io(){if(sn===null)throw Error(o(459));var e=sn;return sn=null,e}function Wo(e){if(e===un||e===gi)throw Error(o(483))}var ol=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(_e&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=ri(e),Bo(e,null,l),t}return ii(e,a,t,l),ri(e)}function on(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Xs(e,l)}}function lu(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var au=!1;function cn(){if(au){var e=ya;if(e!==null)throw e}}function fn(e,t,l,a){au=!1;var n=e.updateQueue;ol=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var v=d,D=v.next;v.next=null,u===null?i=D:u.next=D,u=v;var G=e.alternate;G!==null&&(G=G.updateQueue,d=G.lastBaseUpdate,d!==u&&(d===null?G.firstBaseUpdate=D:d.next=D,G.lastBaseUpdate=v))}if(i!==null){var X=n.baseState;u=0,G=D=v=null,d=i;do{var M=d.lane&-536870913,L=M!==d.lane;if(L?(Ne&M)===M:(a&M)===M){M!==0&&M===ba&&(au=!0),G!==null&&(G=G.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var ge=e,fe=d;M=t;var Oe=l;switch(fe.tag){case 1:if(ge=fe.payload,typeof ge=="function"){X=ge.call(Oe,X,M);break e}X=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=fe.payload,M=typeof ge=="function"?ge.call(Oe,X,M):ge,M==null)break e;X=A({},X,M);break e;case 2:ol=!0}}M=d.callback,M!==null&&(e.flags|=64,L&&(e.flags|=8192),L=n.callbacks,L===null?n.callbacks=[M]:L.push(M))}else L={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},G===null?(D=G=L,v=X):G=G.next=L,u|=M;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;L=d,d=L.next,L.next=null,n.lastBaseUpdate=L,n.shared.pending=null}}while(!0);G===null&&(v=X),n.baseState=v,n.firstBaseUpdate=D,n.lastBaseUpdate=G,i===null&&(n.shared.lanes=0),vl|=u,e.lanes=u,e.memoizedState=X}}function Po(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ec(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Po(l[e],t)}var ma=q(null),pi=q(0);function tc(e,t){e=ll,K(pi,e),K(ma,t),ll=e|t.baseLanes}function nu(){K(pi,ll),K(ma,ma.current)}function iu(){ll=pi.current,I(ma),I(pi)}var dl=0,ve=null,Ce=null,Ze=null,bi=!1,va=!1,Vl=!1,yi=0,dn=0,xa=null,Qh=0;function qe(){throw Error(o(321))}function ru(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function uu(e,t,l,a,n,i){return dl=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Bc:Hc,Vl=!1,i=l(a,n),Vl=!1,va&&(i=ac(t,l,a,n)),lc(e),i}function lc(e){O.H=Ni;var t=Ce!==null&&Ce.next!==null;if(dl=0,Ze=Ce=ve=null,bi=!1,dn=0,xa=null,t)throw Error(o(300));e===null||$e||(e=e.dependencies,e!==null&&ci(e)&&($e=!0))}function ac(e,t,l,a){ve=e;var n=0;do{if(va&&(xa=null),dn=0,va=!1,25<=n)throw Error(o(301));if(n+=1,Ze=Ce=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}O.H=Ph,i=t(l,a)}while(va);return i}function Fh(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?gn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ve.flags|=1024),t}function su(){var e=yi!==0;return yi=0,e}function ou(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function cu(e){if(bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bi=!1}dl=0,Ze=Ce=ve=null,va=!1,dn=yi=0,xa=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ce===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ze===null?ve.memoizedState:Ze.next;if(t!==null)Ze=t,Ce=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gn(e){var t=dn;return dn+=1,xa===null&&(xa=[]),e=Jo(xa,e,t),t=ve,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Bc:Hc),e}function mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gn(e);if(e.$$typeof===U)return lt(e)}throw Error(o(438,String(e)))}function du(e){var t=null,l=ve.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ve.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=fu(),ve.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ce;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function vi(e){var t=Xe();return gu(t,Ce,e)}function gu(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=u=null,v=null,D=t,G=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Ne&X)===X:(dl&X)===X){var M=D.revertLane;if(M===0)v!==null&&(v=v.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===ba&&(G=!0);else if((dl&M)===M){D=D.next,M===ba&&(G=!0);continue}else X={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(d=v=X,u=i):v=v.next=X,ve.lanes|=M,vl|=M;X=D.action,Vl&&l(i,X),i=D.hasEagerState?D.eagerState:l(i,X)}else M={lane:X,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(d=v=M,u=i):v=v.next=M,ve.lanes|=X,vl|=X;D=D.next}while(D!==null&&D!==t);if(v===null?u=i:v.next=d,!ht(i,e.memoizedState)&&($e=!0,G&&(l=ya,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=v,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function hu(e){var t=Xe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);ht(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function nc(e,t,l){var a=ve,n=Xe(),i=we;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var u=!ht((Ce||n).memoizedState,l);u&&(n.memoizedState=l,$e=!0),n=n.queue;var d=uc.bind(null,a,n,e);if(hn(2048,8,d,[e]),n.getSnapshot!==t||u||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Sa(9,xi(),rc.bind(null,a,n,l,t),null),De===null)throw Error(o(349));i||(dl&124)!==0||ic(a,t,l)}return l}function ic(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ve.updateQueue,t===null?(t=fu(),ve.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rc(e,t,l,a){t.value=l,t.getSnapshot=a,sc(t)&&oc(e)}function uc(e,t,l){return l(function(){sc(t)&&oc(e)})}function sc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function oc(e){var t=da(e,2);t!==null&&xt(t,e,2)}function pu(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),Vl){il(!0);try{l()}finally{il(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function cc(e,t,l,a){return e.baseState=l,gu(e,Ce,typeof a=="function"?a:Jt)}function $h(e,t,l,a,n){if(Ei(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};O.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,fc(t,i)):(i.next=l.next,t.pending=l.next=i)}}function fc(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=O.T,u={};O.T=u;try{var d=l(n,a),v=O.S;v!==null&&v(u,d),dc(e,t,d)}catch(D){bu(e,t,D)}finally{O.T=i}}else try{i=l(n,a),dc(e,t,i)}catch(D){bu(e,t,D)}}function dc(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){gc(e,t,a)},function(a){return bu(e,t,a)}):gc(e,t,l)}function gc(e,t,l){t.status="fulfilled",t.value=l,hc(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fc(e,l)))}function bu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,hc(t),t=t.next;while(t!==a)}e.action=null}function hc(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pc(e,t){return t}function bc(e,t){if(we){var l=De.formState;if(l!==null){e:{var a=ve;if(we){if(Be){t:{for(var n=Be,i=Ut;n.nodeType!==8;){if(!i){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Be=Lt(n.nextSibling),a=n.data==="F!";break e}}Gl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pc,lastRenderedState:t},l.queue=a,l=Mc.bind(null,ve,a),a.dispatch=l,a=pu(!1),i=Su.bind(null,ve,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=$h.bind(null,ve,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function yc(e){var t=Xe();return mc(t,Ce,e)}function mc(e,t,l){if(t=gu(e,t,pc)[0],e=vi(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gn(t)}catch(u){throw u===un?gi:u}else a=t;t=Xe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ve.flags|=2048,Sa(9,xi(),Kh.bind(null,n,l),null)),[a,i,e]}function Kh(e,t){e.action=t}function vc(e){var t=Xe(),l=Ce;if(l!==null)return mc(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Sa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ve.updateQueue,t===null&&(t=fu(),ve.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function xi(){return{destroy:void 0,resource:void 0}}function xc(){return Xe().memoizedState}function Si(e,t,l,a){var n=st();a=a===void 0?null:a,ve.flags|=e,n.memoizedState=Sa(1|t,xi(),l,a)}function hn(e,t,l,a){var n=Xe();a=a===void 0?null:a;var i=n.memoizedState.inst;Ce!==null&&a!==null&&ru(a,Ce.memoizedState.deps)?n.memoizedState=Sa(t,i,l,a):(ve.flags|=e,n.memoizedState=Sa(1|t,i,l,a))}function Sc(e,t){Si(8390656,8,e,t)}function Ec(e,t){hn(2048,8,e,t)}function Nc(e,t){return hn(4,2,e,t)}function Ac(e,t){return hn(4,4,e,t)}function wc(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Tc(e,t,l){l=l!=null?l.concat([e]):null,hn(4,4,wc.bind(null,t,e),l)}function yu(){}function _c(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ru(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function jc(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ru(t,a[1]))return a[0];if(a=e(),Vl){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a}function mu(e,t,l){return l===void 0||(dl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Rf(),ve.lanes|=e,vl|=e,l)}function Cc(e,t,l,a){return ht(l,t)?l:ma.current!==null?(e=mu(e,l,a),ht(e,t)||($e=!0),e):(dl&42)===0?($e=!0,e.memoizedState=l):(e=Rf(),ve.lanes|=e,vl|=e,t)}function kc(e,t,l,a,n){var i=Q.p;Q.p=i!==0&&8>i?i:8;var u=O.T,d={};O.T=d,Su(e,!1,t,l);try{var v=n(),D=O.S;if(D!==null&&D(d,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var G=Vh(v,a);pn(e,t,G,vt(e))}else pn(e,t,a,vt(e))}catch(X){pn(e,t,{then:function(){},status:"rejected",reason:X},vt())}finally{Q.p=i,O.T=u}}function Jh(){}function vu(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=Oc(e).queue;kc(e,n,t,V,l===null?Jh:function(){return Rc(e),l(a)})}function Oc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rc(e){var t=Oc(e).next.queue;pn(e,t,{},vt())}function xu(){return lt(Dn)}function Dc(){return Xe().memoizedState}function zc(){return Xe().memoizedState}function Ih(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=cl(l);var a=fl(t,e,l);a!==null&&(xt(a,t,l),on(a,t,l)),t={cache:Jr()},e.payload=t;return}t=t.return}}function Wh(e,t,l){var a=vt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)?Lc(t,l):(l=qr(e,t,l,a),l!==null&&(xt(l,e,a),Uc(l,t,a)))}function Mc(e,t,l){var a=vt();pn(e,t,l,a)}function pn(e,t,l,a){var n={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))Lc(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,d=i(u,l);if(n.hasEagerState=!0,n.eagerState=d,ht(d,u))return ii(e,t,n,0),De===null&&ni(),!1}catch{}finally{}if(l=qr(e,t,n,a),l!==null)return xt(l,e,a),Uc(l,t,a),!0}return!1}function Su(e,t,l,a){if(a={lane:2,revertLane:Pu(),action:a,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(o(479))}else t=qr(e,l,a,2),t!==null&&xt(t,e,2)}function Ei(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Lc(e,t){va=bi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Uc(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Xs(e,l)}}var Ni={readContext:lt,use:mi,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe},Bc={readContext:lt,use:mi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Sc,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Si(4194308,4,wc.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){Si(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(Vl){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(Vl){il(!0);try{l(t)}finally{il(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Wh.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=pu(e);var t=e.queue,l=Mc.bind(null,ve,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:yu,useDeferredValue:function(e,t){var l=st();return mu(l,e,t)},useTransition:function(){var e=pu(!1);return e=kc.bind(null,ve,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ve,n=st();if(we){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),De===null)throw Error(o(349));(Ne&124)!==0||ic(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Sc(uc.bind(null,a,i,e),[e]),a.flags|=2048,Sa(9,xi(),rc.bind(null,a,i,l,t),null),l},useId:function(){var e=st(),t=De.identifierPrefix;if(we){var l=Ft,a=Qt;l=(a&~(1<<32-gt(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=yi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Qh++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:xu,useFormState:bc,useActionState:bc,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Su.bind(null,ve,!0,l),l.dispatch=t,[e,t]},useMemoCache:du,useCacheRefresh:function(){return st().memoizedState=Ih.bind(null,ve)}},Hc={readContext:lt,use:mi,useCallback:_c,useContext:lt,useEffect:Ec,useImperativeHandle:Tc,useInsertionEffect:Nc,useLayoutEffect:Ac,useMemo:jc,useReducer:vi,useRef:xc,useState:function(){return vi(Jt)},useDebugValue:yu,useDeferredValue:function(e,t){var l=Xe();return Cc(l,Ce.memoizedState,e,t)},useTransition:function(){var e=vi(Jt)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:gn(e),t]},useSyncExternalStore:nc,useId:Dc,useHostTransitionStatus:xu,useFormState:yc,useActionState:yc,useOptimistic:function(e,t){var l=Xe();return cc(l,Ce,e,t)},useMemoCache:du,useCacheRefresh:zc},Ph={readContext:lt,use:mi,useCallback:_c,useContext:lt,useEffect:Ec,useImperativeHandle:Tc,useInsertionEffect:Nc,useLayoutEffect:Ac,useMemo:jc,useReducer:hu,useRef:xc,useState:function(){return hu(Jt)},useDebugValue:yu,useDeferredValue:function(e,t){var l=Xe();return Ce===null?mu(l,e,t):Cc(l,Ce.memoizedState,e,t)},useTransition:function(){var e=hu(Jt)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:gn(e),t]},useSyncExternalStore:nc,useId:Dc,useHostTransitionStatus:xu,useFormState:vc,useActionState:vc,useOptimistic:function(e,t){var l=Xe();return Ce!==null?cc(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:du,useCacheRefresh:zc},Ea=null,bn=0;function Ai(e){var t=bn;return bn+=1,Ea===null&&(Ea=[]),Jo(Ea,e,t)}function yn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===b?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qc(e){var t=e._init;return t(e._payload)}function Gc(e){function t(k,w){if(e){var R=k.deletions;R===null?(k.deletions=[w],k.flags|=16):R.push(w)}}function l(k,w){if(!e)return null;for(;w!==null;)t(k,w),w=w.sibling;return null}function a(k){for(var w=new Map;k!==null;)k.key!==null?w.set(k.key,k):w.set(k.index,k),k=k.sibling;return w}function n(k,w){return k=Vt(k,w),k.index=0,k.sibling=null,k}function i(k,w,R){return k.index=R,e?(R=k.alternate,R!==null?(R=R.index,R<w?(k.flags|=67108866,w):R):(k.flags|=67108866,w)):(k.flags|=1048576,w)}function u(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function d(k,w,R,Z){return w===null||w.tag!==6?(w=Yr(R,k.mode,Z),w.return=k,w):(w=n(w,R),w.return=k,w)}function v(k,w,R,Z){var ae=R.type;return ae===E?G(k,w,R.props.children,Z,R.key):w!==null&&(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===pe&&qc(ae)===w.type)?(w=n(w,R.props),yn(w,R),w.return=k,w):(w=ui(R.type,R.key,R.props,null,k.mode,Z),yn(w,R),w.return=k,w)}function D(k,w,R,Z){return w===null||w.tag!==4||w.stateNode.containerInfo!==R.containerInfo||w.stateNode.implementation!==R.implementation?(w=Zr(R,k.mode,Z),w.return=k,w):(w=n(w,R.children||[]),w.return=k,w)}function G(k,w,R,Z,ae){return w===null||w.tag!==7?(w=Ul(R,k.mode,Z,ae),w.return=k,w):(w=n(w,R),w.return=k,w)}function X(k,w,R){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Yr(""+w,k.mode,R),w.return=k,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _:return R=ui(w.type,w.key,w.props,null,k.mode,R),yn(R,w),R.return=k,R;case B:return w=Zr(w,k.mode,R),w.return=k,w;case pe:var Z=w._init;return w=Z(w._payload),X(k,w,R)}if(ee(w)||ie(w))return w=Ul(w,k.mode,R,null),w.return=k,w;if(typeof w.then=="function")return X(k,Ai(w),R);if(w.$$typeof===U)return X(k,fi(k,w),R);wi(k,w)}return null}function M(k,w,R,Z){var ae=w!==null?w.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ae!==null?null:d(k,w,""+R,Z);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return R.key===ae?v(k,w,R,Z):null;case B:return R.key===ae?D(k,w,R,Z):null;case pe:return ae=R._init,R=ae(R._payload),M(k,w,R,Z)}if(ee(R)||ie(R))return ae!==null?null:G(k,w,R,Z,null);if(typeof R.then=="function")return M(k,w,Ai(R),Z);if(R.$$typeof===U)return M(k,w,fi(k,R),Z);wi(k,R)}return null}function L(k,w,R,Z,ae){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return k=k.get(R)||null,d(w,k,""+Z,ae);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:return k=k.get(Z.key===null?R:Z.key)||null,v(w,k,Z,ae);case B:return k=k.get(Z.key===null?R:Z.key)||null,D(w,k,Z,ae);case pe:var xe=Z._init;return Z=xe(Z._payload),L(k,w,R,Z,ae)}if(ee(Z)||ie(Z))return k=k.get(R)||null,G(w,k,Z,ae,null);if(typeof Z.then=="function")return L(k,w,R,Ai(Z),ae);if(Z.$$typeof===U)return L(k,w,R,fi(w,Z),ae);wi(w,Z)}return null}function ge(k,w,R,Z){for(var ae=null,xe=null,ue=w,de=w=0,Je=null;ue!==null&&de<R.length;de++){ue.index>de?(Je=ue,ue=null):Je=ue.sibling;var Ae=M(k,ue,R[de],Z);if(Ae===null){ue===null&&(ue=Je);break}e&&ue&&Ae.alternate===null&&t(k,ue),w=i(Ae,w,de),xe===null?ae=Ae:xe.sibling=Ae,xe=Ae,ue=Je}if(de===R.length)return l(k,ue),we&&Hl(k,de),ae;if(ue===null){for(;de<R.length;de++)ue=X(k,R[de],Z),ue!==null&&(w=i(ue,w,de),xe===null?ae=ue:xe.sibling=ue,xe=ue);return we&&Hl(k,de),ae}for(ue=a(ue);de<R.length;de++)Je=L(ue,k,de,R[de],Z),Je!==null&&(e&&Je.alternate!==null&&ue.delete(Je.key===null?de:Je.key),w=i(Je,w,de),xe===null?ae=Je:xe.sibling=Je,xe=Je);return e&&ue.forEach(function(jl){return t(k,jl)}),we&&Hl(k,de),ae}function fe(k,w,R,Z){if(R==null)throw Error(o(151));for(var ae=null,xe=null,ue=w,de=w=0,Je=null,Ae=R.next();ue!==null&&!Ae.done;de++,Ae=R.next()){ue.index>de?(Je=ue,ue=null):Je=ue.sibling;var jl=M(k,ue,Ae.value,Z);if(jl===null){ue===null&&(ue=Je);break}e&&ue&&jl.alternate===null&&t(k,ue),w=i(jl,w,de),xe===null?ae=jl:xe.sibling=jl,xe=jl,ue=Je}if(Ae.done)return l(k,ue),we&&Hl(k,de),ae;if(ue===null){for(;!Ae.done;de++,Ae=R.next())Ae=X(k,Ae.value,Z),Ae!==null&&(w=i(Ae,w,de),xe===null?ae=Ae:xe.sibling=Ae,xe=Ae);return we&&Hl(k,de),ae}for(ue=a(ue);!Ae.done;de++,Ae=R.next())Ae=L(ue,k,de,Ae.value,Z),Ae!==null&&(e&&Ae.alternate!==null&&ue.delete(Ae.key===null?de:Ae.key),w=i(Ae,w,de),xe===null?ae=Ae:xe.sibling=Ae,xe=Ae);return e&&ue.forEach(function(eb){return t(k,eb)}),we&&Hl(k,de),ae}function Oe(k,w,R,Z){if(typeof R=="object"&&R!==null&&R.type===E&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case _:e:{for(var ae=R.key;w!==null;){if(w.key===ae){if(ae=R.type,ae===E){if(w.tag===7){l(k,w.sibling),Z=n(w,R.props.children),Z.return=k,k=Z;break e}}else if(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===pe&&qc(ae)===w.type){l(k,w.sibling),Z=n(w,R.props),yn(Z,R),Z.return=k,k=Z;break e}l(k,w);break}else t(k,w);w=w.sibling}R.type===E?(Z=Ul(R.props.children,k.mode,Z,R.key),Z.return=k,k=Z):(Z=ui(R.type,R.key,R.props,null,k.mode,Z),yn(Z,R),Z.return=k,k=Z)}return u(k);case B:e:{for(ae=R.key;w!==null;){if(w.key===ae)if(w.tag===4&&w.stateNode.containerInfo===R.containerInfo&&w.stateNode.implementation===R.implementation){l(k,w.sibling),Z=n(w,R.children||[]),Z.return=k,k=Z;break e}else{l(k,w);break}else t(k,w);w=w.sibling}Z=Zr(R,k.mode,Z),Z.return=k,k=Z}return u(k);case pe:return ae=R._init,R=ae(R._payload),Oe(k,w,R,Z)}if(ee(R))return ge(k,w,R,Z);if(ie(R)){if(ae=ie(R),typeof ae!="function")throw Error(o(150));return R=ae.call(R),fe(k,w,R,Z)}if(typeof R.then=="function")return Oe(k,w,Ai(R),Z);if(R.$$typeof===U)return Oe(k,w,fi(k,R),Z);wi(k,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,w!==null&&w.tag===6?(l(k,w.sibling),Z=n(w,R),Z.return=k,k=Z):(l(k,w),Z=Yr(R,k.mode,Z),Z.return=k,k=Z),u(k)):l(k,w)}return function(k,w,R,Z){try{bn=0;var ae=Oe(k,w,R,Z);return Ea=null,ae}catch(ue){if(ue===un||ue===gi)throw ue;var xe=pt(29,ue,null,k.mode);return xe.lanes=Z,xe.return=k,xe}finally{}}}var Na=Gc(!0),Yc=Gc(!1),Ot=q(null),Bt=null;function gl(e){var t=e.alternate;K(Qe,Qe.current&1),K(Ot,e),Bt===null&&(t===null||ma.current!==null||t.memoizedState!==null)&&(Bt=e)}function Zc(e){if(e.tag===22){if(K(Qe,Qe.current),K(Ot,e),Bt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Bt=e)}}else hl()}function hl(){K(Qe,Qe.current),K(Ot,Ot.current)}function It(e){I(Ot),Bt===e&&(Bt=null),I(Qe)}var Qe=q(0);function Ti(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||fs(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Eu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Nu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=cl(a);n.payload=t,l!=null&&(n.callback=l),t=fl(e,n,a),t!==null&&(xt(t,e,a),on(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=cl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=fl(e,n,a),t!==null&&(xt(t,e,a),on(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=cl(l);a.tag=2,t!=null&&(a.callback=t),t=fl(e,a,l),t!==null&&(xt(t,e,l),on(t,e,l))}};function Xc(e,t,l,a,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!Wa(l,a)||!Wa(n,i):!0}function Vc(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Nu.enqueueReplaceState(t,t.state,null)}function Ql(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}var _i=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Qc(e){_i(e)}function Fc(e){console.error(e)}function $c(e){_i(e)}function ji(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Kc(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Au(e,t,l){return l=cl(l),l.tag=3,l.payload={element:null},l.callback=function(){ji(e,t)},l}function Jc(e){return e=cl(e),e.tag=3,e}function Ic(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Kc(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Kc(t,l,a),typeof n!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ep(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&an(t,l,n,!0),l=Ot.current,l!==null){switch(l.tag){case 13:return Bt===null?$u():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Pr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Ju(e,a,n)),!1;case 22:return l.flags|=65536,a===Pr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Ju(e,a,n)),!1}throw Error(o(435,l.tag))}return Ju(e,a,n),$u(),!1}if(we)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Qr&&(e=Error(o(422),{cause:a}),ln(_t(e,l)))):(a!==Qr&&(t=Error(o(423),{cause:a}),ln(_t(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=_t(a,l),n=Au(e.stateNode,a,n),lu(e,n),He!==4&&(He=2)),!1;var i=Error(o(520),{cause:a});if(i=_t(i,l),An===null?An=[i]:An.push(i),He!==4&&(He=2),t===null)return!0;a=_t(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Au(l.stateNode,a,e),lu(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(xl===null||!xl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Jc(n),Ic(n,e,l,a),lu(l,n),!1}l=l.return}while(l!==null);return!1}var Wc=Error(o(461)),$e=!1;function Ie(e,t,l,a){t.child=e===null?Yc(t,null,l,a):Na(t,e.child,l,a)}function Pc(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var d in a)d!=="ref"&&(u[d]=a[d])}else u=a;return Zl(t),a=uu(e,t,l,u,i,n),d=su(),e!==null&&!$e?(ou(e,t,n),Wt(e,t,n)):(we&&d&&Xr(t),t.flags|=1,Ie(e,t,a,n),t.child)}function ef(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Gr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,tf(e,t,i,a,n)):(e=ui(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ru(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Wa,l(u,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Vt(i,a),e.ref=t.ref,e.return=t,t.child=e}function tf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Wa(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,Ru(e,n))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return wu(e,t,l,a,n)}function lf(e,t,l){var a=t.pendingProps,n=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return af(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&di(t,i!==null?i.cachePool:null),i!==null?tc(t,i):nu(),Zc(t);else return t.lanes=t.childLanes=536870912,af(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(di(t,i.cachePool),tc(t,i),hl(),t.memoizedState=null):(e!==null&&di(t,null),nu(),hl());return Ie(e,t,n,l),t.child}function af(e,t,l,a){var n=Wr();return n=n===null?null:{parent:Ve._currentValue,pool:n},t.memoizedState={baseLanes:l,cachePool:n},e!==null&&di(t,null),nu(),Zc(t),e!==null&&an(e,t,a,!0),null}function Ci(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function wu(e,t,l,a,n){return Zl(t),l=uu(e,t,l,a,void 0,n),a=su(),e!==null&&!$e?(ou(e,t,n),Wt(e,t,n)):(we&&a&&Xr(t),t.flags|=1,Ie(e,t,l,n),t.child)}function nf(e,t,l,a,n,i){return Zl(t),t.updateQueue=null,l=ac(t,a,l,n),lc(e),a=su(),e!==null&&!$e?(ou(e,t,i),Wt(e,t,i)):(we&&a&&Xr(t),t.flags|=1,Ie(e,t,l,i),t.child)}function rf(e,t,l,a,n){if(Zl(t),t.stateNode===null){var i=ga,u=l.contextType;typeof u=="object"&&u!==null&&(i=lt(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Nu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},eu(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?lt(u):ga,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Eu(t,l,u,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Nu.enqueueReplaceState(i,i.state,null),fn(t,a,i,n),cn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,v=Ql(l,d);i.props=v;var D=i.context,G=l.contextType;u=ga,typeof G=="object"&&G!==null&&(u=lt(G));var X=l.getDerivedStateFromProps;G=typeof X=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,G||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||D!==u)&&Vc(t,i,a,u),ol=!1;var M=t.memoizedState;i.state=M,fn(t,a,i,n),cn(),D=t.memoizedState,d||M!==D||ol?(typeof X=="function"&&(Eu(t,l,X,a),D=t.memoizedState),(v=ol||Xc(t,l,v,a,M,D,u))?(G||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=u,a=v):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,tu(e,t),u=t.memoizedProps,G=Ql(l,u),i.props=G,X=t.pendingProps,M=i.context,D=l.contextType,v=ga,typeof D=="object"&&D!==null&&(v=lt(D)),d=l.getDerivedStateFromProps,(D=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==X||M!==v)&&Vc(t,i,a,v),ol=!1,M=t.memoizedState,i.state=M,fn(t,a,i,n),cn();var L=t.memoizedState;u!==X||M!==L||ol||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof d=="function"&&(Eu(t,l,d,a),L=t.memoizedState),(G=ol||Xc(t,l,G,a,M,L,v)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(D||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,L,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,L,v)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=L),i.props=a,i.state=L,i.context=v,a=G):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Ci(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Na(t,e.child,null,n),t.child=Na(t,null,l,n)):Ie(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Wt(e,t,n),e}function uf(e,t,l,a){return tn(),t.flags|=256,Ie(e,t,l,a),t.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _u(e){return{baseLanes:e,cachePool:Fo()}}function ju(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function sf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(n?gl(t):hl(),we){var d=Be,v;if(v=d){e:{for(v=d,d=Ut;v.nodeType!==8;){if(!d){d=null;break e}if(v=Lt(v.nextSibling),v===null){d=null;break e}}d=v}d!==null?(t.memoizedState={dehydrated:d,treeContext:Bl!==null?{id:Qt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},v=pt(18,null,null,0),v.stateNode=d,v.return=t,t.child=v,nt=t,Be=null,v=!0):v=!1}v||Gl(t)}if(d=t.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return fs(d)?t.lanes=32:t.lanes=536870912,null;It(t)}return d=a.children,a=a.fallback,n?(hl(),n=t.mode,d=ki({mode:"hidden",children:d},n),a=Ul(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,n=t.child,n.memoizedState=_u(l),n.childLanes=ju(e,u,l),t.memoizedState=Tu,a):(gl(t),Cu(t,d))}if(v=e.memoizedState,v!==null&&(d=v.dehydrated,d!==null)){if(i)t.flags&256?(gl(t),t.flags&=-257,t=ku(e,t,l)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),n=a.fallback,d=t.mode,a=ki({mode:"visible",children:a.children},d),n=Ul(n,d,l,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,Na(t,e.child,null,l),a=t.child,a.memoizedState=_u(l),a.childLanes=ju(e,u,l),t.memoizedState=Tu,t=n);else if(gl(t),fs(d)){if(u=d.nextSibling&&d.nextSibling.dataset,u)var D=u.dgst;u=D,a=Error(o(419)),a.stack="",a.digest=u,ln({value:a,source:null,stack:null}),t=ku(e,t,l)}else if($e||an(e,t,l,!1),u=(l&e.childLanes)!==0,$e||u){if(u=De,u!==null&&(a=l&-l,a=(a&42)!==0?1:dr(a),a=(a&(u.suspendedLanes|l))!==0?0:a,a!==0&&a!==v.retryLane))throw v.retryLane=a,da(e,a),xt(u,e,a),Wc;d.data==="$?"||$u(),t=ku(e,t,l)}else d.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Be=Lt(d.nextSibling),nt=t,we=!0,ql=null,Ut=!1,e!==null&&(Ct[kt++]=Qt,Ct[kt++]=Ft,Ct[kt++]=Bl,Qt=e.id,Ft=e.overflow,Bl=t),t=Cu(t,a.children),t.flags|=4096);return t}return n?(hl(),n=a.fallback,d=t.mode,v=e.child,D=v.sibling,a=Vt(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,D!==null?n=Vt(D,n):(n=Ul(n,d,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,d=e.child.memoizedState,d===null?d=_u(l):(v=d.cachePool,v!==null?(D=Ve._currentValue,v=v.parent!==D?{parent:D,pool:D}:v):v=Fo(),d={baseLanes:d.baseLanes|l,cachePool:v}),n.memoizedState=d,n.childLanes=ju(e,u,l),t.memoizedState=Tu,a):(gl(t),l=e.child,e=l.sibling,l=Vt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function Cu(e,t){return t=ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ki(e,t){return e=pt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ku(e,t,l){return Na(t,e.child,null,l),e=Cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function of(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),$r(e.return,t,l)}function Ou(e,t,l,a,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n)}function cf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;if(Ie(e,t,a.children,l),a=Qe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&of(e,l,t);else if(e.tag===19)of(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(Qe,a),n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ti(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Ou(t,!1,n,l,i);break;case"backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ti(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Ou(t,!0,l,null,i);break;case"together":Ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(an(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Vt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Vt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ru(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function tp(e,t,l){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),sl(t,Ve,e.memoizedState.cache),tn();break;case 27:case 5:Ba(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(gl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?sf(e,t,l):(gl(t),e=Wt(e,t,l),e!==null?e.sibling:null);gl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(an(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return cf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Qe,Qe.current),a)break;return null;case 22:case 23:return t.lanes=0,lf(e,t,l);case 24:sl(t,Ve,e.memoizedState.cache)}return Wt(e,t,l)}function ff(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Ru(e,l)&&(t.flags&128)===0)return $e=!1,tp(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,we&&(t.flags&1048576)!==0&&qo(t,oi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,n=a._init;if(a=n(a._payload),t.type=a,typeof a=="function")Gr(a)?(e=Ql(a,e),t.tag=1,t=rf(null,t,a,e,l)):(t.tag=0,t=wu(null,t,a,e,l));else{if(a!=null){if(n=a.$$typeof,n===F){t.tag=11,t=Pc(null,t,a,e,l);break e}else if(n===ne){t.tag=14,t=ef(null,t,a,e,l);break e}}throw t=z(a)||a,Error(o(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ql(a,t.pendingProps),rf(e,t,a,n,l);case 3:e:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,tu(e,t),fn(t,a,null,l);var u=t.memoizedState;if(a=u.cache,sl(t,Ve,a),a!==i.cache&&Kr(t,[Ve],l,!0),cn(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=uf(e,t,a,l);break e}else if(a!==n){n=_t(Error(o(424)),t),ln(n),t=uf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Lt(e.firstChild),nt=t,we=!0,ql=null,Ut=!0,l=Yc(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(tn(),a===n){t=Wt(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return Ci(e,t),e===null?(l=pd(t.type,null,t.pendingProps,null))?t.memoizedState=l:we||(l=t.type,e=t.pendingProps,a=Xi(J.current).createElement(l),a[tt]=t,a[rt]=e,Pe(a,l,e),Fe(a),t.stateNode=a):t.memoizedState=pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ba(t),e===null&&we&&(a=t.stateNode=dd(t.type,t.pendingProps,J.current),nt=t,Ut=!0,n=Be,Nl(t.type)?(ds=n,Be=Lt(a.firstChild)):Be=n),Ie(e,t,t.pendingProps.children,l),Ci(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((n=a=Be)&&(a=Cp(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,nt=t,Be=Lt(a.firstChild),Ut=!1,n=!0):n=!1),n||Gl(t)),Ba(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,ss(n,i)?a=null:u!==null&&ss(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=uu(e,t,Fh,null,null,l),Dn._currentValue=n),Ci(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&we&&((e=l=Be)&&(l=kp(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,nt=t,Be=null,e=!0):e=!1),e||Gl(t)),null;case 13:return sf(e,t,l);case 4:return he(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Na(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,sl(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Zl(t),n=lt(n),a=a(n),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return ef(e,t,t.type,t.pendingProps,l);case 15:return tf(e,t,t.type,t.pendingProps,l);case 19:return cf(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=ki(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Vt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return lf(e,t,l);case 24:return Zl(t),a=lt(Ve),e===null?(n=Wr(),n===null&&(n=De,i=Jr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},eu(t),sl(t,Ve,n)):((e.lanes&l)!==0&&(tu(e,t),fn(t,null,null,l),cn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),sl(t,Ve,a)):(a=i.cache,sl(t,Ve,a),a!==n.cache&&Kr(t,[Ve],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Pt(e){e.flags|=4}function df(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xd(t)){if(t=Ot.current,t!==null&&((Ne&4194048)===Ne?Bt!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Bt))throw sn=Pr,$o;e.flags|=8192}}function Oi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ys():536870912,e.lanes|=t,_a|=t)}function mn(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function lp(e,t,l){var a=t.pendingProps;switch(Vr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(Ve),it(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(en(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zo())),Le(t),null;case 26:return l=t.memoizedState,e===null?(Pt(t),l!==null?(Le(t),df(t,l)):(Le(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Pt(t),Le(t),df(t,l)):(Le(t),t.flags&=-16777217):(e.memoizedProps!==a&&Pt(t),Le(t),t.flags&=-16777217),null;case 27:Jl(t),l=J.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Le(t),null}e=le.current,en(t)?Go(t):(e=dd(n,a,l),t.stateNode=e,Pt(t))}return Le(t),null;case 5:if(Jl(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Le(t),null}if(e=le.current,en(t))Go(t);else{switch(n=Xi(J.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?n.createElement(l,{is:a.is}):n.createElement(l)}}e[tt]=t,e[rt]=a;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(Pe(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Pt(t)}}return Le(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Pt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=J.current,en(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=nt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[tt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||id(e.nodeValue,l)),e||Gl(t)}else e=Xi(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=en(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[tt]=t}else tn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=Zo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(It(t),t):(It(t),null)}if(It(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Oi(t,t.updateQueue),Le(t),null;case 4:return it(),e===null&&as(t.stateNode.containerInfo),Le(t),null;case 10:return Kt(t.type),Le(t),null;case 19:if(I(Qe),n=t.memoizedState,n===null)return Le(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)mn(n,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ti(e),i!==null){for(t.flags|=128,mn(n,!1),e=i.updateQueue,t.updateQueue=e,Oi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ho(l,e),l=l.sibling;return K(Qe,Qe.current&1|2),t.child}e=e.sibling}n.tail!==null&&At()>zi&&(t.flags|=128,a=!0,mn(n,!1),t.lanes=4194304)}else{if(!a)if(e=Ti(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Oi(t,e),mn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!we)return Le(t),null}else 2*At()-n.renderingStartTime>zi&&l!==536870912&&(t.flags|=128,a=!0,mn(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=At(),t.sibling=null,e=Qe.current,K(Qe,a?e&1|2:e&1),t):(Le(t),null);case 22:case 23:return It(t),iu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Oi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&I(Xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(Ve),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function ap(e,t){switch(Vr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(Ve),it(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jl(t),null;case 13:if(It(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(Qe),null;case 4:return it(),null;case 10:return Kt(t.type),null;case 22:case 23:return It(t),iu(),e!==null&&I(Xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(Ve),null;case 25:return null;default:return null}}function gf(e,t){switch(Vr(t),t.tag){case 3:Kt(Ve),it();break;case 26:case 27:case 5:Jl(t);break;case 4:it();break;case 13:It(t);break;case 19:I(Qe);break;case 10:Kt(t.type);break;case 22:case 23:It(t),iu(),e!==null&&I(Xl);break;case 24:Kt(Ve)}}function vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(d){Re(t,t.return,d)}}function pl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var u=a.inst,d=u.destroy;if(d!==void 0){u.destroy=void 0,n=t;var v=l,D=d;try{D()}catch(G){Re(n,v,G)}}}a=a.next}while(a!==i)}}catch(G){Re(t,t.return,G)}}function hf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ec(t,l)}catch(a){Re(e,e.return,a)}}}function pf(e,t,l){l.props=Ql(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Re(e,t,a)}}function xn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Re(e,t,n)}}function Ht(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Re(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Re(e,t,n)}else l.current=null}function bf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Re(e,e.return,n)}}function Du(e,t,l){try{var a=e.stateNode;Ap(a,e.type,l,t),a[rt]=t}catch(n){Re(e,e.return,n)}}function yf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zi));else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Mu(e,t,l),e=e.sibling;e!==null;)Mu(e,t,l),e=e.sibling}function Ri(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ri(e,t,l),e=e.sibling;e!==null;)Ri(e,t,l),e=e.sibling}function mf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[tt]=e,t[rt]=l}catch(i){Re(e,e.return,i)}}var el=!1,Ge=!1,Lu=!1,vf=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function np(e,t){if(e=e.containerInfo,rs=Ji,e=Co(e),zr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,d=-1,v=-1,D=0,G=0,X=e,M=null;t:for(;;){for(var L;X!==l||n!==0&&X.nodeType!==3||(d=u+n),X!==i||a!==0&&X.nodeType!==3||(v=u+a),X.nodeType===3&&(u+=X.nodeValue.length),(L=X.firstChild)!==null;)M=X,X=L;for(;;){if(X===e)break t;if(M===l&&++D===n&&(d=u),M===i&&++G===a&&(v=u),(L=X.nextSibling)!==null)break;X=M,M=X.parentNode}X=L}l=d===-1||v===-1?null:{start:d,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(us={focusedElem:e,selectionRange:l},Ji=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var ge=Ql(l.type,n,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(ge,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Re(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)cs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function xf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:bl(e,l),a&4&&vn(5,l);break;case 1:if(bl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){Re(l,l.return,u)}else{var n=Ql(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){Re(l,l.return,u)}}a&64&&hf(l),a&512&&xn(l,l.return);break;case 3:if(bl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ec(e,t)}catch(u){Re(l,l.return,u)}}break;case 27:t===null&&a&4&&mf(l);case 26:case 5:bl(e,l),t===null&&a&4&&bf(l),a&512&&xn(l,l.return);break;case 12:bl(e,l);break;case 13:bl(e,l),a&4&&Nf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gp.bind(null,l),Op(e,l))));break;case 22:if(a=l.memoizedState!==null||el,!a){t=t!==null&&t.memoizedState!==null||Ge,n=el;var i=Ge;el=a,(Ge=t)&&!i?yl(e,l,(l.subtreeFlags&8772)!==0):bl(e,l),el=n,Ge=i}break;case 30:break;default:bl(e,l)}}function Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,ot=!1;function tl(e,t,l){for(l=l.child;l!==null;)Ef(e,t,l),l=l.sibling}function Ef(e,t,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(qa,l)}catch{}switch(l.tag){case 26:Ge||Ht(l,t),tl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Ht(l,t);var a=Me,n=ot;Nl(l.type)&&(Me=l.stateNode,ot=!1),tl(e,t,l),Cn(l.stateNode),Me=a,ot=n;break;case 5:Ge||Ht(l,t);case 6:if(a=Me,n=ot,Me=null,tl(e,t,l),Me=a,ot=n,Me!==null)if(ot)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(l.stateNode)}catch(i){Re(l,t,i)}else try{Me.removeChild(l.stateNode)}catch(i){Re(l,t,i)}break;case 18:Me!==null&&(ot?(e=Me,cd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Un(e)):cd(Me,l.stateNode));break;case 4:a=Me,n=ot,Me=l.stateNode.containerInfo,ot=!0,tl(e,t,l),Me=a,ot=n;break;case 0:case 11:case 14:case 15:Ge||pl(2,l,t),Ge||pl(4,l,t),tl(e,t,l);break;case 1:Ge||(Ht(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&pf(l,t,a)),tl(e,t,l);break;case 21:tl(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,tl(e,t,l),Ge=a;break;default:tl(e,t,l)}}function Nf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Un(e)}catch(l){Re(t,t.return,l)}}function ip(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vf),t;default:throw Error(o(435,e.tag))}}function Uu(e,t){var l=ip(e);t.forEach(function(a){var n=hp.bind(null,e,a);l.has(a)||(l.add(a),a.then(n,n))})}function bt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,u=t,d=u;e:for(;d!==null;){switch(d.tag){case 27:if(Nl(d.type)){Me=d.stateNode,ot=!1;break e}break;case 5:Me=d.stateNode,ot=!1;break e;case 3:case 4:Me=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Me===null)throw Error(o(160));Ef(i,u,n),Me=null,ot=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Af(t,e),t=t.sibling}var Mt=null;function Af(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),yt(e),a&4&&(pl(3,e,e.return),vn(3,e),pl(5,e,e.return));break;case 1:bt(t,e),yt(e),a&512&&(Ge||l===null||Ht(l,l.return)),a&64&&el&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Mt;if(bt(t,e),yt(e),a&512&&(Ge||l===null||Ht(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Za]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Pe(i,a,l),i[tt]=e,Fe(i),a=i;break e;case"link":var u=md("link","href",n).get(a+(l.href||""));if(u){for(var d=0;d<u.length;d++)if(i=u[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(d,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;case"meta":if(u=md("meta","content",n).get(a+(l.content||""))){for(d=0;d<u.length;d++)if(i=u[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(d,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[tt]=e,Fe(i),a=i}e.stateNode=a}else vd(n,e.type,e.stateNode);else e.stateNode=yd(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?vd(n,e.type,e.stateNode):yd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Du(e,e.memoizedProps,l.memoizedProps)}break;case 27:bt(t,e),yt(e),a&512&&(Ge||l===null||Ht(l,l.return)),l!==null&&a&4&&Du(e,e.memoizedProps,l.memoizedProps);break;case 5:if(bt(t,e),yt(e),a&512&&(Ge||l===null||Ht(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(L){Re(e,e.return,L)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Du(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Lu=!0);break;case 6:if(bt(t,e),yt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(L){Re(e,e.return,L)}}break;case 3:if(Fi=null,n=Mt,Mt=Vi(t.containerInfo),bt(t,e),Mt=n,yt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Un(t.containerInfo)}catch(L){Re(e,e.return,L)}Lu&&(Lu=!1,wf(e));break;case 4:a=Mt,Mt=Vi(e.stateNode.containerInfo),bt(t,e),yt(e),Mt=a;break;case 12:bt(t,e),yt(e);break;case 13:bt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Zu=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Uu(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,D=el,G=Ge;if(el=D||n,Ge=G||v,bt(t,e),Ge=G,el=D,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||el||Ge||Fl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(i=v.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{d=v.stateNode;var X=v.memoizedProps.style,M=X!=null&&X.hasOwnProperty("display")?X.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(L){Re(v,v.return,L)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(L){Re(v,v.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Uu(e,l))));break;case 19:bt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Uu(e,a)));break;case 30:break;case 21:break;default:bt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(yf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=zu(e);Ri(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(ia(u,""),l.flags&=-33);var d=zu(e);Ri(e,d,u);break;case 3:case 4:var v=l.stateNode.containerInfo,D=zu(e);Mu(e,D,v);break;default:throw Error(o(161))}}catch(G){Re(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xf(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pl(4,t,t.return),Fl(t);break;case 1:Ht(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&pf(t,t.return,l),Fl(t);break;case 27:Cn(t.stateNode);case 26:case 5:Ht(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function yl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:yl(n,i,l),vn(4,i);break;case 1:if(yl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(D){Re(a,a.return,D)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)Po(v[n],d)}catch(D){Re(a,a.return,D)}}l&&u&64&&hf(i),xn(i,i.return);break;case 27:mf(i);case 26:case 5:yl(n,i,l),l&&a===null&&u&4&&bf(i),xn(i,i.return);break;case 12:yl(n,i,l);break;case 13:yl(n,i,l),l&&u&4&&Nf(n,i);break;case 22:i.memoizedState===null&&yl(n,i,l),xn(i,i.return);break;case 30:break;default:yl(n,i,l)}t=t.sibling}}function Bu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&nn(l))}function Hu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nn(e))}function qt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tf(e,t,l,a),t=t.sibling}function Tf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,l,a),n&2048&&vn(9,t);break;case 1:qt(e,t,l,a);break;case 3:qt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nn(e)));break;case 12:if(n&2048){qt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,d=i.onPostCommit;typeof d=="function"&&d(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Re(t,t.return,v)}}else qt(e,t,l,a);break;case 13:qt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?qt(e,t,l,a):Sn(e,t):i._visibility&2?qt(e,t,l,a):(i._visibility|=2,Aa(e,t,l,a,(t.subtreeFlags&10256)!==0)),n&2048&&Bu(u,t);break;case 24:qt(e,t,l,a),n&2048&&Hu(t.alternate,t);break;default:qt(e,t,l,a)}}function Aa(e,t,l,a,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,u=t,d=l,v=a,D=u.flags;switch(u.tag){case 0:case 11:case 15:Aa(i,u,d,v,n),vn(8,u);break;case 23:break;case 22:var G=u.stateNode;u.memoizedState!==null?G._visibility&2?Aa(i,u,d,v,n):Sn(i,u):(G._visibility|=2,Aa(i,u,d,v,n)),n&&D&2048&&Bu(u.alternate,u);break;case 24:Aa(i,u,d,v,n),n&&D&2048&&Hu(u.alternate,u);break;default:Aa(i,u,d,v,n)}t=t.sibling}}function Sn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Sn(l,a),n&2048&&Bu(a.alternate,a);break;case 24:Sn(l,a),n&2048&&Hu(a.alternate,a);break;default:Sn(l,a)}t=t.sibling}}var En=8192;function wa(e){if(e.subtreeFlags&En)for(e=e.child;e!==null;)_f(e),e=e.sibling}function _f(e){switch(e.tag){case 26:wa(e),e.flags&En&&e.memoizedState!==null&&Xp(Mt,e.memoizedState,e.memoizedProps);break;case 5:wa(e);break;case 3:case 4:var t=Mt;Mt=Vi(e.stateNode.containerInfo),wa(e),Mt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=En,En=16777216,wa(e),En=t):wa(e));break;default:wa(e)}}function jf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,kf(a,e)}jf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cf(e),e=e.sibling}function Cf(e){switch(e.tag){case 0:case 11:case 15:Nn(e),e.flags&2048&&pl(9,e,e.return);break;case 3:Nn(e);break;case 12:Nn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Di(e)):Nn(e);break;default:Nn(e)}}function Di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,kf(a,e)}jf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pl(8,t,t.return),Di(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Di(t));break;default:Di(t)}e=e.sibling}}function kf(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:pl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:nn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,i=a.return;if(Sf(a),a===l){Ke=null;break e}if(n!==null){n.return=i,Ke=n;break e}Ke=i}}}var rp={getCacheForType:function(e){var t=lt(Ve),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},up=typeof WeakMap=="function"?WeakMap:Map,_e=0,De=null,Se=null,Ne=0,je=0,mt=null,ml=!1,Ta=!1,qu=!1,ll=0,He=0,vl=0,$l=0,Gu=0,Rt=0,_a=0,An=null,ct=null,Yu=!1,Zu=0,zi=1/0,Mi=null,xl=null,We=0,Sl=null,ja=null,Ca=0,Xu=0,Vu=null,Of=null,wn=0,Qu=null;function vt(){if((_e&2)!==0&&Ne!==0)return Ne&-Ne;if(O.T!==null){var e=ba;return e!==0?e:Pu()}return Vs()}function Rf(){Rt===0&&(Rt=(Ne&536870912)===0||we?Gs():536870912);var e=Ot.current;return e!==null&&(e.flags|=32),Rt}function xt(e,t,l){(e===De&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ka(e,0),El(e,Ne,Rt,!1)),Ya(e,l),((_e&2)===0||e!==De)&&(e===De&&((_e&2)===0&&($l|=l),He===4&&El(e,Ne,Rt,!1)),Gt(e))}function Df(e,t,l){if((_e&6)!==0)throw Error(o(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ga(e,t),n=a?cp(e,t):Ku(e,t,!0),i=a;do{if(n===0){Ta&&!a&&El(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!sp(l)){n=Ku(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var d=e;n=An;var v=d.current.memoizedState.isDehydrated;if(v&&(ka(d,u).flags|=256),u=Ku(d,u,!1),u!==2){if(qu&&!v){d.errorRecoveryDisabledLanes|=i,$l|=i,n=4;break e}i=ct,ct=n,i!==null&&(ct===null?ct=i:ct.push.apply(ct,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){ka(e,0),El(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:El(a,t,Rt,!ml);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Zu+300-At(),10<n)){if(El(a,t,Rt,!ml),Qn(a,0,!0)!==0)break e;a.timeoutHandle=sd(zf.bind(null,a,l,ct,Mi,Yu,t,Rt,$l,_a,ml,i,2,-0,0),n);break e}zf(a,l,ct,Mi,Yu,t,Rt,$l,_a,ml,i,0,-0,0)}}break}while(!0);Gt(e)}function zf(e,t,l,a,n,i,u,d,v,D,G,X,M,L){if(e.timeoutHandle=-1,X=t.subtreeFlags,(X&8192||(X&16785408)===16785408)&&(Rn={stylesheets:null,count:0,unsuspend:Zp},_f(t),X=Vp(),X!==null)){e.cancelPendingCommit=X(Gf.bind(null,e,t,i,l,a,n,u,d,v,G,1,M,L)),El(e,i,u,!D);return}Gf(e,t,i,l,a,n,u,d,v)}function sp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!ht(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function El(e,t,l,a){t&=~Gu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-gt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&Zs(e,l,t)}function Li(){return(_e&6)===0?(Tn(0),!1):!0}function Fu(){if(Se!==null){if(je===0)var e=Se.return;else e=Se,$t=Yl=null,cu(e),Ea=null,bn=0,e=Se;for(;e!==null;)gf(e.alternate,e),e=e.return;Se=null}}function ka(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Tp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Fu(),De=e,Se=l=Vt(e.current,null),Ne=t,je=0,mt=null,ml=!1,Ta=Ga(e,t),qu=!1,_a=Rt=Gu=$l=vl=He=0,ct=An=null,Yu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-gt(a),i=1<<n;t|=e[n],a&=~i}return ll=t,ni(),l}function Mf(e,t){ve=null,O.H=Ni,t===un||t===gi?(t=Io(),je=3):t===$o?(t=Io(),je=4):je=t===Wc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,Se===null&&(He=1,ji(e,_t(t,e.current)))}function Lf(){var e=O.H;return O.H=Ni,e===null?Ni:e}function Uf(){var e=O.A;return O.A=rp,e}function $u(){He=4,ml||(Ne&4194048)!==Ne&&Ot.current!==null||(Ta=!0),(vl&134217727)===0&&($l&134217727)===0||De===null||El(De,Ne,Rt,!1)}function Ku(e,t,l){var a=_e;_e|=2;var n=Lf(),i=Uf();(De!==e||Ne!==t)&&(Mi=null,ka(e,t)),t=!1;var u=He;e:do try{if(je!==0&&Se!==null){var d=Se,v=mt;switch(je){case 8:Fu(),u=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var D=je;if(je=0,mt=null,Oa(e,d,v,D),l&&Ta){u=0;break e}break;default:D=je,je=0,mt=null,Oa(e,d,v,D)}}op(),u=He;break}catch(G){Mf(e,G)}while(!0);return t&&e.shellSuspendCounter++,$t=Yl=null,_e=a,O.H=n,O.A=i,Se===null&&(De=null,Ne=0,ni()),u}function op(){for(;Se!==null;)Bf(Se)}function cp(e,t){var l=_e;_e|=2;var a=Lf(),n=Uf();De!==e||Ne!==t?(Mi=null,zi=At()+500,ka(e,t)):Ta=Ga(e,t);e:do try{if(je!==0&&Se!==null){t=Se;var i=mt;t:switch(je){case 1:je=0,mt=null,Oa(e,t,i,1);break;case 2:case 9:if(Ko(i)){je=0,mt=null,Hf(t);break}t=function(){je!==2&&je!==9||De!==e||(je=7),Gt(e)},i.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Ko(i)?(je=0,mt=null,Hf(t)):(je=0,mt=null,Oa(e,t,i,7));break;case 5:var u=null;switch(Se.tag){case 26:u=Se.memoizedState;case 5:case 27:var d=Se;if(!u||xd(u)){je=0,mt=null;var v=d.sibling;if(v!==null)Se=v;else{var D=d.return;D!==null?(Se=D,Ui(D)):Se=null}break t}}je=0,mt=null,Oa(e,t,i,5);break;case 6:je=0,mt=null,Oa(e,t,i,6);break;case 8:Fu(),He=6;break e;default:throw Error(o(462))}}fp();break}catch(G){Mf(e,G)}while(!0);return $t=Yl=null,O.H=a,O.A=n,_e=l,Se!==null?0:(De=null,Ne=0,ni(),He)}function fp(){for(;Se!==null&&!or();)Bf(Se)}function Bf(e){var t=ff(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Ui(e):Se=t}function Hf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nf(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=nf(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:cu(t);default:gf(l,t),t=Se=Ho(t,ll),t=ff(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Ui(e):Se=t}function Oa(e,t,l,a){$t=Yl=null,cu(t),Ea=null,bn=0;var n=t.return;try{if(ep(e,n,t,l,Ne)){He=1,ji(e,_t(l,e.current)),Se=null;return}}catch(i){if(n!==null)throw Se=n,i;He=1,ji(e,_t(l,e.current)),Se=null;return}t.flags&32768?(we||a===1?e=!0:Ta||(Ne&536870912)!==0?e=!1:(ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),qf(t,e)):Ui(t)}function Ui(e){var t=e;do{if((t.flags&32768)!==0){qf(t,ml);return}e=t.return;var l=lp(t.alternate,t,ll);if(l!==null){Se=l;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);He===0&&(He=5)}function qf(e,t){do{var l=ap(e.alternate,e);if(l!==null){l.flags&=32767,Se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=l}while(e!==null);He=6,Se=null}function Gf(e,t,l,a,n,i,u,d,v){e.cancelPendingCommit=null;do Bi();while(We!==0);if((_e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Hr,Zg(e,l,i,u,d,v),e===De&&(Se=De=null,Ne=0),ja=t,Sl=e,Ca=l,Xu=i,Vu=n,Of=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pp(et,function(){return Qf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=Q.p,Q.p=2,u=_e,_e|=4;try{np(e,t,l)}finally{_e=u,Q.p=n,O.T=a}}We=1,Yf(),Zf(),Xf()}}function Yf(){if(We===1){We=0;var e=Sl,t=ja,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var n=_e;_e|=4;try{Af(t,e);var i=us,u=Co(e.containerInfo),d=i.focusedElem,v=i.selectionRange;if(u!==d&&d&&d.ownerDocument&&jo(d.ownerDocument.documentElement,d)){if(v!==null&&zr(d)){var D=v.start,G=v.end;if(G===void 0&&(G=D),"selectionStart"in d)d.selectionStart=D,d.selectionEnd=Math.min(G,d.value.length);else{var X=d.ownerDocument||document,M=X&&X.defaultView||window;if(M.getSelection){var L=M.getSelection(),ge=d.textContent.length,fe=Math.min(v.start,ge),Oe=v.end===void 0?fe:Math.min(v.end,ge);!L.extend&&fe>Oe&&(u=Oe,Oe=fe,fe=u);var k=_o(d,fe),w=_o(d,Oe);if(k&&w&&(L.rangeCount!==1||L.anchorNode!==k.node||L.anchorOffset!==k.offset||L.focusNode!==w.node||L.focusOffset!==w.offset)){var R=X.createRange();R.setStart(k.node,k.offset),L.removeAllRanges(),fe>Oe?(L.addRange(R),L.extend(w.node,w.offset)):(R.setEnd(w.node,w.offset),L.addRange(R))}}}}for(X=[],L=d;L=L.parentNode;)L.nodeType===1&&X.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<X.length;d++){var Z=X[d];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ji=!!rs,us=rs=null}finally{_e=n,Q.p=a,O.T=l}}e.current=t,We=2}}function Zf(){if(We===2){We=0;var e=Sl,t=ja,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var n=_e;_e|=4;try{xf(e,t.alternate,t)}finally{_e=n,Q.p=a,O.T=l}}We=3}}function Xf(){if(We===4||We===3){We=0,Yn();var e=Sl,t=ja,l=Ca,a=Of;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ja=Sl=null,Vf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(xl=null),gr(l),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=Q.p,Q.p=2,O.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var d=a[u];i(d.value,{componentStack:d.stack})}}finally{O.T=t,Q.p=n}}(Ca&3)!==0&&Bi(),Gt(e),n=e.pendingLanes,(l&4194090)!==0&&(n&42)!==0?e===Qu?wn++:(wn=0,Qu=e):wn=0,Tn(0)}}function Vf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nn(t)))}function Bi(e){return Yf(),Zf(),Xf(),Qf()}function Qf(){if(We!==5)return!1;var e=Sl,t=Xu;Xu=0;var l=gr(Ca),a=O.T,n=Q.p;try{Q.p=32>l?32:l,O.T=null,l=Vu,Vu=null;var i=Sl,u=Ca;if(We=0,ja=Sl=null,Ca=0,(_e&6)!==0)throw Error(o(331));var d=_e;if(_e|=4,Cf(i.current),Tf(i,i.current,u,l),_e=d,Tn(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(qa,i)}catch{}return!0}finally{Q.p=n,O.T=a,Vf(e,t)}}function Ff(e,t,l){t=_t(l,t),t=Au(e.stateNode,t,2),e=fl(e,t,2),e!==null&&(Ya(e,2),Gt(e))}function Re(e,t,l){if(e.tag===3)Ff(e,e,l);else for(;t!==null;){if(t.tag===3){Ff(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(xl===null||!xl.has(a))){e=_t(l,e),l=Jc(2),a=fl(t,l,2),a!==null&&(Ic(l,a,t,e),Ya(a,2),Gt(a));break}}t=t.return}}function Ju(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new up;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(qu=!0,n.add(l),e=dp.bind(null,e,t,l),t.then(e,e))}function dp(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,De===e&&(Ne&l)===l&&(He===4||He===3&&(Ne&62914560)===Ne&&300>At()-Zu?(_e&2)===0&&ka(e,0):Gu|=l,_a===Ne&&(_a=0)),Gt(e)}function $f(e,t){t===0&&(t=Ys()),e=da(e,t),e!==null&&(Ya(e,t),Gt(e))}function gp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$f(e,l)}function hp(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),$f(e,l)}function pp(e,t){return kl(e,t)}var Hi=null,Ra=null,Iu=!1,qi=!1,Wu=!1,Kl=0;function Gt(e){e!==Ra&&e.next===null&&(Ra===null?Hi=Ra=e:Ra=Ra.next=e),qi=!0,Iu||(Iu=!0,yp())}function Tn(e,t){if(!Wu&&qi){Wu=!0;do for(var l=!1,a=Hi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-gt(42|e)+1)-1,i&=n&~(u&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Wf(a,i))}else i=Ne,i=Qn(a,a===De?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ga(a,i)||(l=!0,Wf(a,i));a=a.next}while(l);Wu=!1}}function bp(){Kf()}function Kf(){qi=Iu=!1;var e=0;Kl!==0&&(wp()&&(e=Kl),Kl=0);for(var t=At(),l=null,a=Hi;a!==null;){var n=a.next,i=Jf(a,t);i===0?(a.next=null,l===null?Hi=n:l.next=n,n===null&&(Ra=l)):(l=a,(e!==0||(i&3)!==0)&&(qi=!0)),a=n}Tn(e)}function Jf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-gt(i),d=1<<u,v=n[u];v===-1?((d&l)===0||(d&a)!==0)&&(n[u]=Yg(d,t)):v<=t&&(e.expiredLanes|=d),i&=~d}if(t=De,l=Ne,l=Qn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Il(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ga(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Il(a),gr(l)){case 2:case 8:l=Ye;break;case 32:l=et;break;case 268435456:l=Zn;break;default:l=et}return a=If.bind(null,e),l=kl(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Il(a),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Bi()&&e.callbackNode!==l)return null;var a=Ne;return a=Qn(e,e===De?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Df(e,a,t),Jf(e,At()),e.callbackNode!=null&&e.callbackNode===l?If.bind(null,e):null)}function Wf(e,t){if(Bi())return null;Df(e,t,!0)}function yp(){_p(function(){(_e&6)!==0?kl(Te,bp):Kf()})}function Pu(){return Kl===0&&(Kl=Gs()),Kl}function Pf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:In(""+e)}function ed(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function mp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Pf((n[rt]||null).action),u=a.submitter;u&&(t=(t=u[rt]||null)?Pf(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var d=new ti("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Kl!==0){var v=u?ed(n,u):new FormData(n);vu(l,{pending:!0,data:v,method:n.method,action:i},null,v)}}else typeof i=="function"&&(d.preventDefault(),v=u?ed(n,u):new FormData(n),vu(l,{pending:!0,data:v,method:n.method,action:i},i,v))},currentTarget:n}]})}}for(var es=0;es<Br.length;es++){var ts=Br[es],vp=ts.toLowerCase(),xp=ts[0].toUpperCase()+ts.slice(1);zt(vp,"on"+xp)}zt(Ro,"onAnimationEnd"),zt(Do,"onAnimationIteration"),zt(zo,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(Uh,"onTransitionRun"),zt(Bh,"onTransitionStart"),zt(Hh,"onTransitionCancel"),zt(Mo,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_n));function td(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var d=a[u],v=d.instance,D=d.currentTarget;if(d=d.listener,v!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=D;try{i(n)}catch(G){_i(G)}n.currentTarget=null,i=v}else for(u=0;u<a.length;u++){if(d=a[u],v=d.instance,D=d.currentTarget,d=d.listener,v!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=D;try{i(n)}catch(G){_i(G)}n.currentTarget=null,i=v}}}}function Ee(e,t){var l=t[hr];l===void 0&&(l=t[hr]=new Set);var a=e+"__bubble";l.has(a)||(ld(t,e,2,!1),l.add(a))}function ls(e,t,l){var a=0;t&&(a|=4),ld(l,e,a,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[Gi]){e[Gi]=!0,Fs.forEach(function(l){l!=="selectionchange"&&(Sp.has(l)||ls(l,!1,e),ls(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,ls("selectionchange",!1,t))}}function ld(e,t,l,a){switch(Td(t)){case 2:var n=$p;break;case 8:n=Kp;break;default:n=ys}l=n.bind(null,t,l,e),n=void 0,!wr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ns(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var d=a.stateNode.containerInfo;if(d===n)break;if(u===4)for(u=a.return;u!==null;){var v=u.tag;if((v===3||v===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;d!==null;){if(u=Pl(d),u===null)return;if(v=u.tag,v===5||v===6||v===26||v===27){a=i=u;continue e}d=d.parentNode}}a=a.return}uo(function(){var D=i,G=Nr(l),X=[];e:{var M=Lo.get(e);if(M!==void 0){var L=ti,ge=e;switch(e){case"keypress":if(Pn(l)===0)break e;case"keydown":case"keyup":L=ph;break;case"focusin":ge="focus",L=Cr;break;case"focusout":ge="blur",L=Cr;break;case"beforeblur":case"afterblur":L=Cr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=ah;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=mh;break;case Ro:case Do:case zo:L=rh;break;case Mo:L=xh;break;case"scroll":case"scrollend":L=th;break;case"wheel":L=Eh;break;case"copy":case"cut":case"paste":L=sh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=go;break;case"toggle":case"beforetoggle":L=Ah}var fe=(t&4)!==0,Oe=!fe&&(e==="scroll"||e==="scrollend"),k=fe?M!==null?M+"Capture":null:M;fe=[];for(var w=D,R;w!==null;){var Z=w;if(R=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||R===null||k===null||(Z=Va(w,k),Z!=null&&fe.push(jn(w,Z,R))),Oe)break;w=w.return}0<fe.length&&(M=new L(M,ge,null,l,G),X.push({event:M,listeners:fe}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",M&&l!==Er&&(ge=l.relatedTarget||l.fromElement)&&(Pl(ge)||ge[Wl]))break e;if((L||M)&&(M=G.window===G?G:(M=G.ownerDocument)?M.defaultView||M.parentWindow:window,L?(ge=l.relatedTarget||l.toElement,L=D,ge=ge?Pl(ge):null,ge!==null&&(Oe=h(ge),fe=ge.tag,ge!==Oe||fe!==5&&fe!==27&&fe!==6)&&(ge=null)):(L=null,ge=D),L!==ge)){if(fe=co,Z="onMouseLeave",k="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(fe=go,Z="onPointerLeave",k="onPointerEnter",w="pointer"),Oe=L==null?M:Xa(L),R=ge==null?M:Xa(ge),M=new fe(Z,w+"leave",L,l,G),M.target=Oe,M.relatedTarget=R,Z=null,Pl(G)===D&&(fe=new fe(k,w+"enter",ge,l,G),fe.target=R,fe.relatedTarget=Oe,Z=fe),Oe=Z,L&&ge)t:{for(fe=L,k=ge,w=0,R=fe;R;R=Da(R))w++;for(R=0,Z=k;Z;Z=Da(Z))R++;for(;0<w-R;)fe=Da(fe),w--;for(;0<R-w;)k=Da(k),R--;for(;w--;){if(fe===k||k!==null&&fe===k.alternate)break t;fe=Da(fe),k=Da(k)}fe=null}else fe=null;L!==null&&ad(X,M,L,fe,!1),ge!==null&&Oe!==null&&ad(X,Oe,ge,fe,!0)}}e:{if(M=D?Xa(D):window,L=M.nodeName&&M.nodeName.toLowerCase(),L==="select"||L==="input"&&M.type==="file")var ae=So;else if(vo(M))if(Eo)ae=zh;else{ae=Rh;var xe=Oh}else L=M.nodeName,!L||L.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?D&&Sr(D.elementType)&&(ae=So):ae=Dh;if(ae&&(ae=ae(e,D))){xo(X,ae,l,G);break e}xe&&xe(e,M,D),e==="focusout"&&D&&M.type==="number"&&D.memoizedProps.value!=null&&xr(M,"number",M.value)}switch(xe=D?Xa(D):window,e){case"focusin":(vo(xe)||xe.contentEditable==="true")&&(oa=xe,Mr=D,Pa=null);break;case"focusout":Pa=Mr=oa=null;break;case"mousedown":Lr=!0;break;case"contextmenu":case"mouseup":case"dragend":Lr=!1,ko(X,l,G);break;case"selectionchange":if(Lh)break;case"keydown":case"keyup":ko(X,l,G)}var ue;if(Or)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else sa?yo(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(ho&&l.locale!=="ko"&&(sa||de!=="onCompositionStart"?de==="onCompositionEnd"&&sa&&(ue=so()):(ul=G,Tr="value"in ul?ul.value:ul.textContent,sa=!0)),xe=Yi(D,de),0<xe.length&&(de=new fo(de,e,null,l,G),X.push({event:de,listeners:xe}),ue?de.data=ue:(ue=mo(l),ue!==null&&(de.data=ue)))),(ue=Th?_h(e,l):jh(e,l))&&(de=Yi(D,"onBeforeInput"),0<de.length&&(xe=new fo("onBeforeInput","beforeinput",null,l,G),X.push({event:xe,listeners:de}),xe.data=ue)),mp(X,e,D,l,G)}td(X,t)})}function jn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Yi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Va(e,l),n!=null&&a.unshift(jn(e,n,i)),n=Va(e,t),n!=null&&a.push(jn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Da(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ad(e,t,l,a,n){for(var i=t._reactName,u=[];l!==null&&l!==a;){var d=l,v=d.alternate,D=d.stateNode;if(d=d.tag,v!==null&&v===a)break;d!==5&&d!==26&&d!==27||D===null||(v=D,n?(D=Va(l,i),D!=null&&u.unshift(jn(l,D,v))):n||(D=Va(l,i),D!=null&&u.push(jn(l,D,v)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var Ep=/\r\n?/g,Np=/\u0000|\uFFFD/g;function nd(e){return(typeof e=="string"?e:""+e).replace(Ep,`
|
|
49
|
-
`).replace(Np,"")}function id(e,t){return t=nd(t),nd(e)===t}function Zi(){}function ke(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":$n(e,"class",a);break;case"tabIndex":$n(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$n(e,l,a);break;case"style":io(e,a,i);break;case"data":if(t!=="object"){$n(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=In(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&ke(e,t,"name",n.name,n,null),ke(e,t,"formEncType",n.formEncType,n,null),ke(e,t,"formMethod",n.formMethod,n,null),ke(e,t,"formTarget",n.formTarget,n,null)):(ke(e,t,"encType",n.encType,n,null),ke(e,t,"method",n.method,n,null),ke(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=In(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zi);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=In(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Fn(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Pg.get(l)||l,Fn(e,l,a))}}function is(e,t,l,a,n,i){switch(l){case"style":io(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$s.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[rt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Fn(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,i,u,l,null)}}n&&ke(e,t,"srcSet",l.srcSet,l,null),a&&ke(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=i=u=n=null,v=null,D=null;for(a in l)if(l.hasOwnProperty(a)){var G=l[a];if(G!=null)switch(a){case"name":n=G;break;case"type":u=G;break;case"checked":v=G;break;case"defaultChecked":D=G;break;case"value":i=G;break;case"defaultValue":d=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:ke(e,t,a,G,l,null)}}to(e,i,d,v,D,u,n,!1),Kn(e);return;case"select":Ee("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":u=d;break;case"multiple":a=d;default:ke(e,t,n,d,l,null)}t=i,l=u,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":Ee("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(d=l[u],d!=null))switch(u){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:ke(e,t,u,d,l,null)}ao(e,a,n,i),Kn(e);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ke(e,t,v,a,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(a=0;a<_n.length;a++)Ee(_n[a],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in l)if(l.hasOwnProperty(D)&&(a=l[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,D,a,l,null)}return;default:if(Sr(t)){for(G in l)l.hasOwnProperty(G)&&(a=l[G],a!==void 0&&is(e,t,G,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&ke(e,t,d,a,l,null))}function Ap(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,d=null,v=null,D=null,G=null;for(L in l){var X=l[L];if(l.hasOwnProperty(L)&&X!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":v=X;default:a.hasOwnProperty(L)||ke(e,t,L,null,a,X)}}for(var M in a){var L=a[M];if(X=l[M],a.hasOwnProperty(M)&&(L!=null||X!=null))switch(M){case"type":i=L;break;case"name":n=L;break;case"checked":D=L;break;case"defaultChecked":G=L;break;case"value":u=L;break;case"defaultValue":d=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==X&&ke(e,t,M,L,a,X)}}vr(e,u,d,v,D,G,i,n);return;case"select":L=u=d=M=null;for(i in l)if(v=l[i],l.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":L=v;default:a.hasOwnProperty(i)||ke(e,t,i,null,a,v)}for(n in a)if(i=a[n],v=l[n],a.hasOwnProperty(n)&&(i!=null||v!=null))switch(n){case"value":M=i;break;case"defaultValue":d=i;break;case"multiple":u=i;default:i!==v&&ke(e,t,n,i,a,v)}t=d,l=u,a=L,M!=null?na(e,!!l,M,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":L=M=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ke(e,t,d,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":M=n;break;case"defaultValue":L=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&ke(e,t,u,n,a,i)}lo(e,M,L);return;case"option":for(var ge in l)if(M=l[ge],l.hasOwnProperty(ge)&&M!=null&&!a.hasOwnProperty(ge))switch(ge){case"selected":e.selected=!1;break;default:ke(e,t,ge,null,a,M)}for(v in a)if(M=a[v],L=l[v],a.hasOwnProperty(v)&&M!==L&&(M!=null||L!=null))switch(v){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ke(e,t,v,M,a,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in l)M=l[fe],l.hasOwnProperty(fe)&&M!=null&&!a.hasOwnProperty(fe)&&ke(e,t,fe,null,a,M);for(D in a)if(M=a[D],L=l[D],a.hasOwnProperty(D)&&M!==L&&(M!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:ke(e,t,D,M,a,L)}return;default:if(Sr(t)){for(var Oe in l)M=l[Oe],l.hasOwnProperty(Oe)&&M!==void 0&&!a.hasOwnProperty(Oe)&&is(e,t,Oe,void 0,a,M);for(G in a)M=a[G],L=l[G],!a.hasOwnProperty(G)||M===L||M===void 0&&L===void 0||is(e,t,G,M,a,L);return}}for(var k in l)M=l[k],l.hasOwnProperty(k)&&M!=null&&!a.hasOwnProperty(k)&&ke(e,t,k,null,a,M);for(X in a)M=a[X],L=l[X],!a.hasOwnProperty(X)||M===L||M==null&&L==null||ke(e,t,X,M,a,L)}var rs=null,us=null;function Xi(e){return e.nodeType===9?e:e.ownerDocument}function rd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ud(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ss(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var os=null;function wp(){var e=window.event;return e&&e.type==="popstate"?e===os?!1:(os=e,!0):(os=null,!1)}var sd=typeof setTimeout=="function"?setTimeout:void 0,Tp=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,_p=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(e){return od.resolve(null).then(e).catch(jp)}:sd;function jp(e){setTimeout(function(){throw e})}function Nl(e){return e==="head"}function cd(e,t){var l=t,a=0,n=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<a&&8>a){l=a;var u=e.ownerDocument;if(l&1&&Cn(u.documentElement),l&2&&Cn(u.body),l&4)for(l=u.head,Cn(l),u=l.firstChild;u;){var d=u.nextSibling,v=u.nodeName;u[Za]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=d}}if(n===0){e.removeChild(i),Un(t);return}n--}else l==="$"||l==="$?"||l==="$!"?n++:a=l.charCodeAt(0)-48;else a=0;l=i}while(l);Un(t)}function cs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":cs(l),pr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Cp(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Za])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function kp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Lt(e.nextSibling),e===null))return null;return e}function fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Op(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var ds=null;function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function dd(e,t,l){switch(t=Xi(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Cn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pr(e)}var Dt=new Map,gd=new Set;function Vi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=Q.d;Q.d={f:Rp,r:Dp,D:zp,C:Mp,L:Lp,m:Up,X:Hp,S:Bp,M:qp};function Rp(){var e=al.f(),t=Li();return e||t}function Dp(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?Rc(t):al.r(e)}var za=typeof document>"u"?null:document;function hd(e,t,l){var a=za;if(a&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),gd.has(n)||(gd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),Fe(t),a.head.appendChild(t)))}}function zp(e){al.D(e),hd("dns-prefetch",e,null)}function Mp(e,t){al.C(e,t),hd("preconnect",e,t)}function Lp(e,t,l){al.L(e,t,l);var a=za;if(a&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Tt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Tt(l.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var i=n;switch(t){case"style":i=Ma(e);break;case"script":i=La(e)}Dt.has(i)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(kn(i))||t==="script"&&a.querySelector(On(i))||(t=a.createElement("link"),Pe(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Up(e,t){al.m(e,t);var l=za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=La(e)}if(!Dt.has(i)&&(e=A({rel:"modulepreload",href:e},t),Dt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(On(i)))return}a=l.createElement("link"),Pe(a,"link",e),Fe(a),l.head.appendChild(a)}}}function Bp(e,t,l){al.S(e,t,l);var a=za;if(a&&e){var n=ta(a).hoistableStyles,i=Ma(e);t=t||"default";var u=n.get(i);if(!u){var d={loading:0,preload:null};if(u=a.querySelector(kn(i)))d.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(i))&&gs(e,l);var v=u=a.createElement("link");Fe(v),Pe(v,"link",e),v._p=new Promise(function(D,G){v.onload=D,v.onerror=G}),v.addEventListener("load",function(){d.loading|=1}),v.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Qi(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:d},n.set(i,u)}}}function Hp(e,t){al.X(e,t);var l=za;if(l&&e){var a=ta(l).hoistableScripts,n=La(e),i=a.get(n);i||(i=l.querySelector(On(n)),i||(e=A({src:e,async:!0},t),(t=Dt.get(n))&&hs(e,t),i=l.createElement("script"),Fe(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function qp(e,t){al.M(e,t);var l=za;if(l&&e){var a=ta(l).hoistableScripts,n=La(e),i=a.get(n);i||(i=l.querySelector(On(n)),i||(e=A({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&hs(e,t),i=l.createElement("script"),Fe(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function pd(e,t,l,a){var n=(n=J.current)?Vi(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ma(l.href),l=ta(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ma(l.href);var i=ta(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(kn(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),i||Gp(n,e,l,u.state))),t&&a===null)throw Error(o(528,""));return u}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(l),l=ta(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ma(e){return'href="'+Tt(e)+'"'}function kn(e){return'link[rel="stylesheet"]['+e+"]"}function bd(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Gp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),Fe(t),e.head.appendChild(t))}function La(e){return'[src="'+Tt(e)+'"]'}function On(e){return"script[async]"+e}function yd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(l.href)+'"]');if(a)return t.instance=a,Fe(a),a;var n=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),Pe(a,"style",n),Qi(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ma(l.href);var i=e.querySelector(kn(n));if(i)return t.state.loading|=4,t.instance=i,Fe(i),i;a=bd(l),(n=Dt.get(n))&&gs(a,n),i=(e.ownerDocument||e).createElement("link"),Fe(i);var u=i;return u._p=new Promise(function(d,v){u.onload=d,u.onerror=v}),Pe(i,"link",a),t.state.loading|=4,Qi(i,l.precedence,e),t.instance=i;case"script":return i=La(l.src),(n=e.querySelector(On(i)))?(t.instance=n,Fe(n),n):(a=l,(n=Dt.get(i))&&(a=A({},l),hs(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Qi(a,l.precedence,e));return t.instance}function Qi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var d=a[u];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function gs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fi=null;function md(e,t,l){if(Fi===null){var a=new Map,n=Fi=new Map;n.set(l,a)}else n=Fi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Za]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var d=a.get(u);d?d.push(i):a.set(u,[i])}}return a}function vd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Yp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function xd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rn=null;function Zp(){}function Xp(e,t,l){if(Rn===null)throw Error(o(475));var a=Rn;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=Ma(l.href),i=e.querySelector(kn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=$i.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,Fe(i);return}i=e.ownerDocument||e,l=bd(l),(n=Dt.get(n))&&gs(l,n),i=i.createElement("link"),Fe(i);var u=i;u._p=new Promise(function(d,v){u.onload=d,u.onerror=v}),Pe(i,"link",l),t.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=$i.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Vp(){if(Rn===null)throw Error(o(475));var e=Rn;return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function $i(){if(this.count--,this.count===0){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ki=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ki=new Map,t.forEach(Qp,e),Ki=null,$i.call(e))}function Qp(e,t){if(!(t.state.loading&4)){var l=Ki.get(e);if(l)var a=l.get(null);else{l=new Map,Ki.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=$i.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Dn={$$typeof:U,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Fp(e,t,l,a,n,i,u,d){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fr(0),this.hiddenUpdates=fr(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Sd(e,t,l,a,n,i,u,d,v,D,G,X){return e=new Fp(e,t,l,u,d,v,D,X),t=1,i===!0&&(t|=24),i=pt(3,null,null,t),e.current=i,i.stateNode=e,t=Jr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},eu(i),e}function Ed(e){return e?(e=ga,e):ga}function Nd(e,t,l,a,n,i){n=Ed(n),a.context===null?a.context=n:a.pendingContext=n,a=cl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=fl(e,a,t),l!==null&&(xt(l,e,t),on(l,e,t))}function Ad(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function bs(e,t){Ad(e,t),(e=e.alternate)&&Ad(e,t)}function wd(e){if(e.tag===13){var t=da(e,67108864);t!==null&&xt(t,e,67108864),bs(e,67108864)}}var Ji=!0;function $p(e,t,l,a){var n=O.T;O.T=null;var i=Q.p;try{Q.p=2,ys(e,t,l,a)}finally{Q.p=i,O.T=n}}function Kp(e,t,l,a){var n=O.T;O.T=null;var i=Q.p;try{Q.p=8,ys(e,t,l,a)}finally{Q.p=i,O.T=n}}function ys(e,t,l,a){if(Ji){var n=ms(a);if(n===null)ns(e,t,a,Ii,l),_d(e,a);else if(Ip(n,e,t,l,a))a.stopPropagation();else if(_d(e,a),t&4&&-1<Jp.indexOf(e)){for(;n!==null;){var i=ea(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Rl(i.pendingLanes);if(u!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;u;){var v=1<<31-gt(u);d.entanglements[1]|=v,u&=~v}Gt(i),(_e&6)===0&&(zi=At()+500,Tn(0))}}break;case 13:d=da(i,2),d!==null&&xt(d,i,2),Li(),bs(i,2)}if(i=ms(a),i===null&&ns(e,t,a,Ii,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else ns(e,t,a,null,l)}}function ms(e){return e=Nr(e),vs(e)}var Ii=null;function vs(e){if(Ii=null,e=Pl(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=S(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ii=e,null}function Td(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(be()){case Te:return 2;case Ye:return 8;case et:case Ol:return 32;case Zn:return 268435456;default:return 32}default:return 32}}var xs=!1,Al=null,wl=null,Tl=null,zn=new Map,Mn=new Map,_l=[],Jp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function _d(e,t){switch(e){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":zn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(t.pointerId)}}function Ln(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ea(t),t!==null&&wd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Ip(e,t,l,a,n){switch(t){case"focusin":return Al=Ln(Al,e,t,l,a,n),!0;case"dragenter":return wl=Ln(wl,e,t,l,a,n),!0;case"mouseover":return Tl=Ln(Tl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return zn.set(i,Ln(zn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Mn.set(i,Ln(Mn.get(i)||null,e,t,l,a,n)),!0}return!1}function jd(e){var t=Pl(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=S(l),t!==null){e.blockedOn=t,Xg(e.priority,function(){if(l.tag===13){var a=vt();a=dr(a);var n=da(l,a);n!==null&&xt(n,l,a),bs(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ms(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Er=a,l.target.dispatchEvent(a),Er=null}else return t=ea(l),t!==null&&wd(t),e.blockedOn=l,!1;t.shift()}return!0}function Cd(e,t,l){Wi(e)&&l.delete(t)}function Wp(){xs=!1,Al!==null&&Wi(Al)&&(Al=null),wl!==null&&Wi(wl)&&(wl=null),Tl!==null&&Wi(Tl)&&(Tl=null),zn.forEach(Cd),Mn.forEach(Cd)}function Pi(e,t){e.blockedOn===t&&(e.blockedOn=null,xs||(xs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wp)))}var er=null;function kd(e){er!==e&&(er=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){er===e&&(er=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(vs(a||l)===null)continue;break}var i=ea(l);i!==null&&(e.splice(t,3),t-=3,vu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Un(e){function t(v){return Pi(v,e)}Al!==null&&Pi(Al,e),wl!==null&&Pi(wl,e),Tl!==null&&Pi(Tl,e),zn.forEach(t),Mn.forEach(t);for(var l=0;l<_l.length;l++){var a=_l[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_l.length&&(l=_l[0],l.blockedOn===null);)jd(l),l.blockedOn===null&&_l.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[rt]||null;if(typeof i=="function")u||kd(l);else if(u){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[rt]||null)d=u.formAction;else if(vs(n)!==null)continue}else d=u.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),kd(l)}}}function Ss(e){this._internalRoot=e}tr.prototype.render=Ss.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=vt();Nd(l,a,e,t,null,null)},tr.prototype.unmount=Ss.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nd(e.current,2,null,e,null,null),Li(),t[Wl]=null}};function tr(e){this._internalRoot=e}tr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<_l.length&&t!==0&&t<_l[l].priority;l++);_l.splice(l,0,e),l===0&&jd(e)}};var Od=c.version;if(Od!=="19.1.0")throw Error(o(527,Od,"19.1.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var Pp={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lr.isDisabled&&lr.supportsFiber)try{qa=lr.inject(Pp),dt=lr}catch{}}return Hn.createRoot=function(e,t){if(!p(e))throw Error(o(299));var l=!1,a="",n=Qc,i=Fc,u=$c,d=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks)),t=Sd(e,1,!1,null,null,l,a,n,i,u,d,null),e[Wl]=t.current,as(e),new Ss(t)},Hn.hydrateRoot=function(e,t,l){if(!p(e))throw Error(o(299));var a=!1,n="",i=Qc,u=Fc,d=$c,v=null,D=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(v=l.unstable_transitionCallbacks),l.formState!==void 0&&(D=l.formState)),t=Sd(e,1,!0,t,l??null,a,n,i,u,d,v,D),t.context=Ed(null),l=t.current,a=vt(),a=dr(a),n=cl(a),n.callback=null,fl(l,n,a),l=a,t.current.lanes=l,Ya(t,l),Gt(t),e[Wl]=t.current,as(e),new tr(t)},Hn.version="19.1.0",Hn}var Gd;function ob(){if(Gd)return As.exports;Gd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),As.exports=sb(),As.exports}var cb=ob();const fb=ng(cb),ig=["shift","alt","meta","mod","ctrl","control"],db={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Cl(r){return(db[r.trim()]||r.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function rg(r){return ig.includes(r)}function js(r,c=","){return r.toLowerCase().split(c)}function Cs(r,c="+",f=">",o=!1,p){let h=[],S=!1;r.includes(f)?(S=!0,h=r.toLocaleLowerCase().split(f).map(g=>Cl(g))):h=r.toLocaleLowerCase().split(c).map(g=>Cl(g));const T={alt:h.includes("alt"),ctrl:h.includes("ctrl")||h.includes("control"),shift:h.includes("shift"),meta:h.includes("meta"),mod:h.includes("mod"),useKey:o},m=h.filter(g=>!ig.includes(g));return{...T,keys:m,description:p,isSequence:S}}typeof document<"u"&&(document.addEventListener("keydown",r=>{r.code!==void 0&&ug([Cl(r.code)])}),document.addEventListener("keyup",r=>{r.code!==void 0&&sg([Cl(r.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{nl.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{nl.clear()},0)}));const nl=new Set;function Ms(r){return Array.isArray(r)}function gb(r,c=","){return(Ms(r)?r:r.split(c)).every(f=>nl.has(f.trim().toLowerCase()))}function ug(r){const c=Array.isArray(r)?r:[r];nl.has("meta")&&nl.forEach(f=>!rg(f)&&nl.delete(f.toLowerCase())),c.forEach(f=>nl.add(f.toLowerCase()))}function sg(r){const c=Array.isArray(r)?r:[r];r==="meta"?nl.clear():c.forEach(f=>nl.delete(f.toLowerCase()))}function hb(r,c,f){(typeof f=="function"&&f(r,c)||f===!0)&&r.preventDefault()}function pb(r,c,f){return typeof f=="function"?f(r,c):f===!0||f===void 0}function bb(r){return og(r,["input","textarea","select"])}function og(r,c=!1){const{target:f,composed:o}=r;let p;return yb(f)&&o?p=r.composedPath()[0]&&r.composedPath()[0].tagName:p=f&&f.tagName,Ms(c)?!!(p&&c&&c.some(h=>h.toLowerCase()===p.toLowerCase())):!!(p&&c&&c)}function yb(r){return!!r.tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")}function mb(r,c){return r.length===0&&c?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):c?r.some(f=>c.includes(f))||r.includes("*"):!0}const vb=(r,c,f=!1)=>{const{alt:o,meta:p,mod:h,shift:S,ctrl:T,keys:m,useKey:g}=c,{code:A,key:b,ctrlKey:_,metaKey:B,shiftKey:E,altKey:N}=r,C=Cl(A);if(g&&m?.length===1&&m.includes(b))return!0;if(!(m!=null&&m.includes(C))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(C))return!1;if(!f){if(o!==N&&C!=="alt"||S!==E&&C!=="shift")return!1;if(h){if(!B&&!_)return!1}else if(p!==B&&C!=="meta"&&C!=="os"||T!==_&&C!=="ctrl"&&C!=="control")return!1}return m&&m.length===1&&m.includes(C)?!0:m?gb(m):!m},cg=H.createContext(void 0),xb=()=>H.useContext(cg);function Sb({addHotkey:r,removeHotkey:c,children:f}){return s.jsx(cg.Provider,{value:{addHotkey:r,removeHotkey:c},children:f})}function Ls(r,c){return r&&c&&typeof r=="object"&&typeof c=="object"?Object.keys(r).length===Object.keys(c).length&&Object.keys(r).reduce((f,o)=>f&&Ls(r[o],c[o]),!0):r===c}const fg=H.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),rr=()=>H.useContext(fg),Eb=({initiallyActiveScopes:r=["*"],children:c})=>{const[f,o]=H.useState(r),[p,h]=H.useState([]),S=H.useCallback(b=>{o(_=>_.includes("*")?[b]:Array.from(new Set([..._,b])))},[]),T=H.useCallback(b=>{o(_=>_.filter(B=>B!==b))},[]),m=H.useCallback(b=>{o(_=>_.includes(b)?_.filter(B=>B!==b):_.includes("*")?[b]:Array.from(new Set([..._,b])))},[]),g=H.useCallback(b=>{h(_=>[..._,b])},[]),A=H.useCallback(b=>{h(_=>_.filter(B=>!Ls(B,b)))},[]);return s.jsx(fg.Provider,{value:{activeScopes:f,hotkeys:p,enableScope:S,disableScope:T,toggleScope:m},children:s.jsx(Sb,{addHotkey:g,removeHotkey:A,children:c})})};function Nb(r){const c=H.useRef(void 0);return Ls(c.current,r)||(c.current=r),c.current}const Yd=r=>{r.stopPropagation(),r.preventDefault(),r.stopImmediatePropagation()},Ab=typeof window<"u"?H.useLayoutEffect:H.useEffect;function ze(r,c,f,o){const p=H.useRef(null),h=H.useRef(!1),S=f instanceof Array?o instanceof Array?void 0:o:f,T=Ms(r)?r.join(S?.delimiter):r,m=f instanceof Array?f:o instanceof Array?o:void 0,g=H.useCallback(c,m??[]),A=H.useRef(g);m?A.current=g:A.current=c;const b=Nb(S),{activeScopes:_}=rr(),B=xb();return Ab(()=>{if(b?.enabled===!1||!mb(_,b?.scopes))return;let E=[],N;const C=(F,$=!1)=>{var se;if(!(bb(F)&&!og(F,b?.enableOnFormTags))){if(p.current!==null){const ne=p.current.getRootNode();if((ne instanceof Document||ne instanceof ShadowRoot)&&ne.activeElement!==p.current&&!p.current.contains(ne.activeElement)){Yd(F);return}}(se=F.target)!=null&&se.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||js(T,b?.delimiter).forEach(ne=>{var pe,oe,ce,P;if(ne.includes(b?.splitKey??"+")&&ne.includes(b?.sequenceSplitKey??">")){console.warn(`Hotkey ${ne} contains both ${b?.splitKey??"+"} and ${b?.sequenceSplitKey??">"} which is not supported.`);return}const ie=Cs(ne,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description);if(ie.isSequence){N=setTimeout(()=>{E=[]},b?.sequenceTimeoutMs??1e3);const W=ie.useKey?F.key:Cl(F.code);if(rg(W.toLowerCase()))return;E.push(W);const z=(pe=ie.keys)==null?void 0:pe[E.length-1];if(W!==z){E=[],N&&clearTimeout(N);return}E.length===((oe=ie.keys)==null?void 0:oe.length)&&(A.current(F,ie),N&&clearTimeout(N),E=[])}else if(vb(F,ie,b?.ignoreModifiers)||(ce=ie.keys)!=null&&ce.includes("*")){if((P=b?.ignoreEventWhen)!=null&&P.call(b,F)||$&&h.current)return;if(hb(F,ie,b?.preventDefault),!pb(F,ie,b?.enabled)){Yd(F);return}A.current(F,ie),$||(h.current=!0)}})}},y=F=>{F.code!==void 0&&(ug(Cl(F.code)),(b?.keydown===void 0&&b?.keyup!==!0||b!=null&&b.keydown)&&C(F))},j=F=>{F.code!==void 0&&(sg(Cl(F.code)),h.current=!1,b!=null&&b.keyup&&C(F,!0))},U=p.current||S?.document||document;return U.addEventListener("keyup",j,S?.eventListenerOptions),U.addEventListener("keydown",y,S?.eventListenerOptions),B&&js(T,b?.delimiter).forEach(F=>B.addHotkey(Cs(F,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),()=>{U.removeEventListener("keyup",j,S?.eventListenerOptions),U.removeEventListener("keydown",y,S?.eventListenerOptions),B&&js(T,b?.delimiter).forEach(F=>B.removeHotkey(Cs(F,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),E=[],N&&clearTimeout(N)}},[T,b,_]),p}/**
|
|
50
|
-
* @license lucide-react v0.525.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const wb=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tb=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,f,o)=>o?o.toUpperCase():f.toLowerCase()),Zd=r=>{const c=Tb(r);return c.charAt(0).toUpperCase()+c.slice(1)},dg=(...r)=>r.filter((c,f,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===f).join(" ").trim(),_b=r=>{for(const c in r)if(c.startsWith("aria-")||c==="role"||c==="title")return!0};/**
|
|
55
|
-
* @license lucide-react v0.525.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var jb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
-
* @license lucide-react v0.525.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const Cb=H.forwardRef(({color:r="currentColor",size:c=24,strokeWidth:f=2,absoluteStrokeWidth:o,className:p="",children:h,iconNode:S,...T},m)=>H.createElement("svg",{ref:m,...jb,width:c,height:c,stroke:r,strokeWidth:o?Number(f)*24/Number(c):f,className:dg("lucide",p),...!h&&!_b(T)&&{"aria-hidden":"true"},...T},[...S.map(([g,A])=>H.createElement(g,A)),...Array.isArray(h)?h:[h]]));/**
|
|
65
|
-
* @license lucide-react v0.525.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const Ue=(r,c)=>{const f=H.forwardRef(({className:o,...p},h)=>H.createElement(Cb,{ref:h,iconNode:c,className:dg(`lucide-${wb(Zd(r))}`,`lucide-${r}`,o),...p}));return f.displayName=Zd(r),f};/**
|
|
70
|
-
* @license lucide-react v0.525.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const kb=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ob=Ue("align-left",kb);/**
|
|
75
|
-
* @license lucide-react v0.525.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const Rb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qn=Ue("check",Rb);/**
|
|
80
|
-
* @license lucide-react v0.525.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const Db=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Us=Ue("chevron-down",Db);/**
|
|
85
|
-
* @license lucide-react v0.525.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const zb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gg=Ue("chevron-right",zb);/**
|
|
90
|
-
* @license lucide-react v0.525.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const Mb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Lb=Ue("columns-2",Mb);/**
|
|
95
|
-
* @license lucide-react v0.525.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const Ub=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],hg=Ue("copy",Ub);/**
|
|
100
|
-
* @license lucide-react v0.525.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const Bb=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Hb=Ue("eraser",Bb);/**
|
|
105
|
-
* @license lucide-react v0.525.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const qb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],pg=Ue("file-diff",qb);/**
|
|
110
|
-
* @license lucide-react v0.525.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Gb=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],bg=Ue("file-pen",Gb);/**
|
|
115
|
-
* @license lucide-react v0.525.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const Yb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],yg=Ue("file-plus",Yb);/**
|
|
120
|
-
* @license lucide-react v0.525.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const Zb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],mg=Ue("file-x",Zb);/**
|
|
125
|
-
* @license lucide-react v0.525.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const Xb=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Vb=Ue("folder-open",Xb);/**
|
|
130
|
-
* @license lucide-react v0.525.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const Qb=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Fb=Ue("folder",Qb);/**
|
|
135
|
-
* @license lucide-react v0.525.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const $b=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Kb=Ue("list",$b);/**
|
|
140
|
-
* @license lucide-react v0.525.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const Jb=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],vg=Ue("message-square",Jb);/**
|
|
145
|
-
* @license lucide-react v0.525.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const Ib=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Wb=Ue("panel-left-close",Ib);/**
|
|
150
|
-
* @license lucide-react v0.525.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const Pb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ey=Ue("panel-left",Pb);/**
|
|
155
|
-
* @license lucide-react v0.525.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const ty=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],ly=Ue("pen",ty);/**
|
|
160
|
-
* @license lucide-react v0.525.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const ay=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],ny=Ue("rotate-ccw",ay);/**
|
|
165
|
-
* @license lucide-react v0.525.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const iy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ry=Ue("search",iy);/**
|
|
170
|
-
* @license lucide-react v0.525.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const uy=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xg=Ue("settings",uy);/**
|
|
175
|
-
* @license lucide-react v0.525.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const sy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],oy=Ue("square",sy);/**
|
|
180
|
-
* @license lucide-react v0.525.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const cy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Bs=Ue("x",cy);function Sg({checked:r,onChange:c,label:f,className:o="",title:p}){const h=T=>{T.stopPropagation(),c(!r)},S=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.stopPropagation(),c(!r))};return s.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${o}`,title:p,onClick:h,onKeyDown:S,role:"checkbox","aria-checked":r,tabIndex:0,children:[s.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${r?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:r&&s.jsx(qn,{size:10,className:"text-white"})}),f&&s.jsx("span",{className:"select-none",children:f})]})}function fy({commentsCount:r,isCopiedAll:c,onCopyAll:f,onDeleteAll:o,onViewAll:p}){const[h,S]=H.useState(!1),T=H.useRef(null);H.useEffect(()=>{const b=_=>{T.current&&!T.current.contains(_.target)&&S(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const m=()=>{f(),S(!1)},g=()=>{o(),S(!1)},A=()=>{p?.(),S(!1)};return s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("div",{className:"flex",children:[s.jsxs("button",{onClick:m,className:"text-xs px-3 py-1.5 pr-2 rounded-l transition-all whitespace-nowrap flex items-center gap-1.5",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${r} comments to AI coding agent`,children:[c?s.jsx(qn,{size:12}):s.jsx(hg,{size:12}),c?"Copied All!":`Copy All Prompt (${r})`]}),s.jsx("button",{onClick:()=>S(!h),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:s.jsx(Us,{size:12,className:`transition-transform duration-200 ${h?"rotate-180":""}`})})]}),h&&s.jsxs("div",{className:"absolute left-0 right-0 bg-github-bg-primary border border-github-border rounded-b z-50 pb-px",style:{borderTop:"none"},children:[p&&s.jsxs("button",{onClick:A,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:r===0,children:[s.jsx(Kb,{size:12}),"View All Comments"]}),s.jsxs("button",{onClick:g,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[s.jsx(Hb,{size:12}),"Cleanup All Prompt"]})]})]})}function Hs({comment:r,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:o,onClick:p}){const[h,S]=H.useState(!1),[T,m]=H.useState(!1),[g,A]=H.useState(r.body),b=async y=>{y.stopPropagation();try{const j=c(r);await navigator.clipboard.writeText(j),S(!0),setTimeout(()=>S(!1),2e3)}catch(j){console.error("Failed to copy prompt:",j)}},_=y=>{y.stopPropagation(),m(!0),A(r.body)},B=()=>{m(!1),A(r.body)},E=y=>{y?.stopPropagation(),g.trim()!==r.body&&o(r.id,g.trim()),m(!1)},N=y=>{y.stopPropagation(),f(r.id)},C=y=>{y.key==="Enter"&&(y.metaKey||y.ctrlKey)?(y.preventDefault(),E()):y.key==="Escape"&&(y.preventDefault(),B())};return ze("escape",()=>{T&&B()},{enableOnFormTags:["textarea"],enabled:T},[T]),ze("mod+enter",()=>{T&&E()},{enableOnFormTags:["textarea"],enabled:T},[T,g,r.body]),s.jsxs("div",{id:`comment-${r.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${p?"hover:shadow-md cursor-pointer":""}`,onClick:p,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:s.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[r.file,":",Array.isArray(r.line)?`${r.line[0]}-${r.line[1]}`:r.line]})}),s.jsx("div",{className:"flex items-center gap-2",children:!T&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:b,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:h?"Copied!":"Copy Prompt"}),s.jsx("button",{onClick:_,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:s.jsx(ly,{size:12})}),s.jsx("button",{onClick:N,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:s.jsx(qn,{size:12})})]})})]}),T?s.jsxs("div",{children:[s.jsx("textarea",{value:g,onChange:y=>A(y.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,g.split(`
|
|
185
|
-
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:y=>y.stopPropagation(),onKeyDown:y=>{y.stopPropagation(),C(y)}}),s.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[s.jsx("button",{type:"button",onClick:B,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),s.jsx("button",{type:"button",onClick:E,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!g.trim(),children:"Submit"})]})]}):s.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:r.body})]})}function dy({isOpen:r,onClose:c,onNavigate:f,comments:o,onRemoveComment:p,onGeneratePrompt:h,onUpdateComment:S}){const[T,m]=H.useState(0),g=H.useRef([]),{enableScope:A,disableScope:b}=rr(),_=[...o].sort((C,y)=>{const j=C.file.localeCompare(y.file);if(j!==0)return j;const U=Array.isArray(C.line)?C.line[0]:C.line,F=Array.isArray(y.line)?y.line[0]:y.line;return U-F}),B=H.useCallback(C=>{f(C),c()},[f,c]),E=H.useCallback(C=>{confirm(`Delete this comment?
|
|
186
|
-
|
|
187
|
-
"${C.body}"`)&&(p(C.id),T>=_.length-1&&T>0&&m(T-1))},[p,T,_.length]);H.useEffect(()=>(r?(A("comments-list"),b("navigation")):(A("navigation"),b("comments-list"),m(0)),()=>{A("navigation"),b("comments-list")}),[r,A,b]);const N={scopes:"comments-list",enableOnFormTags:!1};return ze("escape",()=>c(),N,[c]),ze("j, down",()=>m(C=>Math.min(C+1,_.length-1)),N,[_.length]),ze("k, up",()=>m(C=>Math.max(C-1,0)),N,[]),ze("enter",()=>{_[T]&&B(_[T])},N,[T,_,B]),ze("d",()=>{_[T]&&E(_[T])},N,[T,_,E]),H.useEffect(()=>{g.current[T]&&g.current[T]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[T]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:c}),s.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[s.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),s.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:s.jsx(Bs,{size:20})})]}),s.jsxs("div",{className:"text-xs text-github-text-secondary",children:[s.jsx("span",{className:"font-mono",children:"j/k"})," or ",s.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",s.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",s.jsx("span",{className:"font-mono",children:"d"})," to delete • ",s.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),s.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:s.jsx("div",{className:"p-6",children:_.length===0?s.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-2",children:_.map((C,y)=>s.jsx("div",{ref:j=>{g.current[y]=j},className:`${T===y?"ring-2 ring-blue-500 rounded":""}`,children:s.jsx(Hs,{comment:C,onGeneratePrompt:h,onRemoveComment:p,onUpdateComment:S,onClick:j=>{j.stopPropagation(),m(y),B(C)}})},C.id))}),_.length>0&&s.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[T+1," of ",_.length," comments"]})]})})})]})]}):null}function Eg(r){return r&&r.split(".").pop()?.toLowerCase()||null}function gy(r){return r&&r.split("/").pop()||""}const hy=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function py(r){if(!r)return!1;const c=Eg(r);return c?hy.includes(c):!1}function Ng({onSubmit:r,onCancel:c}){const[f,o]=H.useState(""),[p,h]=H.useState(!1),S=async m=>{if(m.preventDefault(),!!f.trim()){h(!0);try{await r(f.trim()),o("")}catch(g){console.error("Failed to submit comment:",g)}finally{h(!1)}}},T=m=>{m.key==="Enter"&&(m.metaKey||m.ctrlKey)?S(m):m.key==="Escape"&&c()};return s.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:S,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),s.jsx("span",{className:"text-xs text-github-text-muted",children:"Cmd+Enter to submit • Escape to cancel"})]}),s.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:f,onChange:m=>o(m.target.value),onKeyDown:T,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:p}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:c,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:p,children:"Cancel"}),s.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!f.trim()||p,children:p?"Submitting...":"Submit"})]})]})}const nr=Gn.memo(({onMouseDown:r,onMouseUp:c,title:f="Add a comment"})=>s.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:r,onMouseUp:c,title:f,children:s.jsx(vg,{className:"w-4 h-4"})}));nr.displayName="CommentButton";const by=2,yy=100;function my(r){return!(r.length<by||r.length>yy)}function Xd(r){return r.toLowerCase()}function Vd(r){const c=r.trim();return c?c.match(/^\w+$/)!==null&&my(c):!1}const vy=200,Ag=H.createContext(void 0);function xy({children:r}){const[c,f]=H.useState(null),o=H.useRef(null),p=H.useCallback(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),h=H.useCallback(g=>{const A=g.target;if(!A.classList.contains("word-token"))return;p();const b=A.getAttribute("data-word");b&&(o.current=setTimeout(()=>{f(b)},vy))},[p]),S=H.useCallback(()=>{p(),f(null)},[p]),T=H.useCallback(g=>c?Xd(g)===Xd(c):!1,[c]);H.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const m={highlightedWord:c,handleMouseOver:h,handleMouseOut:S,isWordHighlighted:T};return s.jsx(Ag.Provider,{value:m,children:r})}function Sy(){const r=H.useContext(Ag);if(!r)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return r}function wg(r){var c,f,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var p=r.length;for(c=0;c<p;c++)r[c]&&(f=wg(r[c]))&&(o&&(o+=" "),o+=f)}else for(f in r)r[f]&&(o&&(o+=" "),o+=f);return o}function Tg(){for(var r,c,f=0,o="",p=arguments.length;f<p;f++)(r=arguments[f])&&(c=wg(r))&&(o&&(o+=" "),o+=c);return o}var Ey=Object.create,ur=Object.defineProperty,Ny=Object.defineProperties,Ay=Object.getOwnPropertyDescriptor,wy=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertyNames,ir=Object.getOwnPropertySymbols,Ty=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty,jg=Object.prototype.propertyIsEnumerable,Qd=(r,c,f)=>c in r?ur(r,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[c]=f,Yt=(r,c)=>{for(var f in c||(c={}))qs.call(c,f)&&Qd(r,f,c[f]);if(ir)for(var f of ir(c))jg.call(c,f)&&Qd(r,f,c[f]);return r},sr=(r,c)=>Ny(r,wy(c)),Cg=(r,c)=>{var f={};for(var o in r)qs.call(r,o)&&c.indexOf(o)<0&&(f[o]=r[o]);if(r!=null&&ir)for(var o of ir(r))c.indexOf(o)<0&&jg.call(r,o)&&(f[o]=r[o]);return f},_y=(r,c)=>function(){return c||(0,r[_g(r)[0]])((c={exports:{}}).exports,c),c.exports},jy=(r,c)=>{for(var f in c)ur(r,f,{get:c[f],enumerable:!0})},Cy=(r,c,f,o)=>{if(c&&typeof c=="object"||typeof c=="function")for(let p of _g(c))!qs.call(r,p)&&p!==f&&ur(r,p,{get:()=>c[p],enumerable:!(o=Ay(c,p))||o.enumerable});return r},ky=(r,c,f)=>(f=r!=null?Ey(Ty(r)):{},Cy(!r||!r.__esModule?ur(f,"default",{value:r,enumerable:!0}):f,r)),Oy=_y({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(r,c){var f=function(){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,p=0,h={},S={util:{encode:function E(N){return N instanceof T?new T(N.type,E(N.content),N.alias):Array.isArray(N)?N.map(E):N.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++p}),E.__id},clone:function E(N,C){C=C||{};var y,j;switch(S.util.type(N)){case"Object":if(j=S.util.objId(N),C[j])return C[j];y={},C[j]=y;for(var U in N)N.hasOwnProperty(U)&&(y[U]=E(N[U],C));return y;case"Array":return j=S.util.objId(N),C[j]?C[j]:(y=[],C[j]=y,N.forEach(function(F,$){y[$]=E(F,C)}),y);default:return N}},getLanguage:function(E){for(;E;){var N=o.exec(E.className);if(N)return N[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,N){E.className=E.className.replace(RegExp(o,"gi"),""),E.classList.add("language-"+N)},isActive:function(E,N,C){for(var y="no-"+N;E;){var j=E.classList;if(j.contains(N))return!0;if(j.contains(y))return!1;E=E.parentElement}return!!C}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(E,N){var C=S.util.clone(S.languages[E]);for(var y in N)C[y]=N[y];return C},insertBefore:function(E,N,C,y){y=y||S.languages;var j=y[E],U={};for(var F in j)if(j.hasOwnProperty(F)){if(F==N)for(var $ in C)C.hasOwnProperty($)&&(U[$]=C[$]);C.hasOwnProperty(F)||(U[F]=j[F])}var se=y[E];return y[E]=U,S.languages.DFS(S.languages,function(ne,pe){pe===se&&ne!=E&&(this[ne]=U)}),U},DFS:function E(N,C,y,j){j=j||{};var U=S.util.objId;for(var F in N)if(N.hasOwnProperty(F)){C.call(N,F,N[F],y||F);var $=N[F],se=S.util.type($);se==="Object"&&!j[U($)]?(j[U($)]=!0,E($,C,null,j)):se==="Array"&&!j[U($)]&&(j[U($)]=!0,E($,C,F,j))}}},plugins:{},highlight:function(E,N,C){var y={code:E,grammar:N,language:C};if(S.hooks.run("before-tokenize",y),!y.grammar)throw new Error('The language "'+y.language+'" has no grammar.');return y.tokens=S.tokenize(y.code,y.grammar),S.hooks.run("after-tokenize",y),T.stringify(S.util.encode(y.tokens),y.language)},tokenize:function(E,N){var C=N.rest;if(C){for(var y in C)N[y]=C[y];delete N.rest}var j=new A;return b(j,j.head,E),g(E,j,N,j.head,0),B(j)},hooks:{all:{},add:function(E,N){var C=S.hooks.all;C[E]=C[E]||[],C[E].push(N)},run:function(E,N){var C=S.hooks.all[E];if(!(!C||!C.length))for(var y=0,j;j=C[y++];)j(N)}},Token:T};function T(E,N,C,y){this.type=E,this.content=N,this.alias=C,this.length=(y||"").length|0}T.stringify=function E(N,C){if(typeof N=="string")return N;if(Array.isArray(N)){var y="";return N.forEach(function(se){y+=E(se,C)}),y}var j={type:N.type,content:E(N.content,C),tag:"span",classes:["token",N.type],attributes:{},language:C},U=N.alias;U&&(Array.isArray(U)?Array.prototype.push.apply(j.classes,U):j.classes.push(U)),S.hooks.run("wrap",j);var F="";for(var $ in j.attributes)F+=" "+$+'="'+(j.attributes[$]||"").replace(/"/g,""")+'"';return"<"+j.tag+' class="'+j.classes.join(" ")+'"'+F+">"+j.content+"</"+j.tag+">"};function m(E,N,C,y){E.lastIndex=N;var j=E.exec(C);if(j&&y&&j[1]){var U=j[1].length;j.index+=U,j[0]=j[0].slice(U)}return j}function g(E,N,C,y,j,U){for(var F in C)if(!(!C.hasOwnProperty(F)||!C[F])){var $=C[F];$=Array.isArray($)?$:[$];for(var se=0;se<$.length;++se){if(U&&U.cause==F+","+se)return;var ne=$[se],pe=ne.inside,oe=!!ne.lookbehind,ce=!!ne.greedy,P=ne.alias;if(ce&&!ne.pattern.global){var ie=ne.pattern.toString().match(/[imsuy]*$/)[0];ne.pattern=RegExp(ne.pattern.source,ie+"g")}for(var W=ne.pattern||ne,z=y.next,ee=j;z!==N.tail&&!(U&&ee>=U.reach);ee+=z.value.length,z=z.next){var O=z.value;if(N.length>E.length)return;if(!(O instanceof T)){var Q=1,V;if(ce){if(V=m(W,ee,E,oe),!V||V.index>=E.length)break;var I=V.index,te=V.index+V[0].length,x=ee;for(x+=z.value.length;I>=x;)z=z.next,x+=z.value.length;if(x-=z.value.length,ee=x,z.value instanceof T)continue;for(var q=z;q!==N.tail&&(x<te||typeof q.value=="string");q=q.next)Q++,x+=q.value.length;Q--,O=E.slice(ee,x),V.index-=ee}else if(V=m(W,0,O,oe),!V)continue;var I=V.index,K=V[0],le=O.slice(0,I),re=O.slice(I+K.length),J=ee+O.length;U&&J>U.reach&&(U.reach=J);var me=z.prev;le&&(me=b(N,me,le),ee+=le.length),_(N,me,Q);var he=new T(F,pe?S.tokenize(K,pe):K,P,K);if(z=b(N,me,he),re&&b(N,z,re),Q>1){var it={cause:F+","+se,reach:J};g(E,N,C,z.prev,ee,it),U&&it.reach>U.reach&&(U.reach=it.reach)}}}}}}function A(){var E={value:null,prev:null,next:null},N={value:null,prev:E,next:null};E.next=N,this.head=E,this.tail=N,this.length=0}function b(E,N,C){var y=N.next,j={value:C,prev:N,next:y};return N.next=j,y.prev=j,E.length++,j}function _(E,N,C){for(var y=N.next,j=0;j<C&&y!==E.tail;j++)y=y.next;N.next=y,y.prev=N,E.length-=j}function B(E){for(var N=[],C=E.head.next;C!==E.tail;)N.push(C.value),C=C.next;return N}return S}();c.exports=f,f.default=f}}),Y=ky(Oy());Y.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Y.languages.markup.tag.inside["attr-value"].inside.entity=Y.languages.markup.entity,Y.languages.markup.doctype.inside["internal-subset"].inside=Y.languages.markup,Y.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(Y.languages.markup.tag,"addInlined",{value:function(r,o){var f={},f=(f["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Y.languages[o]},f.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}}),o=(f["language-"+o]={pattern:/[\s\S]+/,inside:Y.languages[o]},{});o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},Y.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Y.languages.markup.tag,"addAttribute",{value:function(r,c){Y.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[c,"language-"+c],inside:Y.languages[c]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Y.languages.html=Y.languages.markup,Y.languages.mathml=Y.languages.markup,Y.languages.svg=Y.languages.markup,Y.languages.xml=Y.languages.extend("markup",{}),Y.languages.ssml=Y.languages.xml,Y.languages.atom=Y.languages.xml,Y.languages.rss=Y.languages.xml,function(r){var c={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},f=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o="(?:[^\\\\-]|"+f.source+")",o=RegExp(o+"-"+o),p={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:f,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":c,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:f}},"special-escape":c,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":p}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:f,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":p}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Y),Y.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Y.languages.javascript=Y.languages.extend("clike",{"class-name":[Y.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Y.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Y.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Y.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Y.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Y.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Y.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Y.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Y.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Y.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Y.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Y.languages.markup&&(Y.languages.markup.tag.addInlined("script","javascript"),Y.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Y.languages.js=Y.languages.javascript,Y.languages.actionscript=Y.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Y.languages.actionscript["class-name"].alias="function",delete Y.languages.actionscript.parameter,delete Y.languages.actionscript["literal-property"],Y.languages.markup&&Y.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Y.languages.markup}}),function(r){var c=/#(?!\{).+/,f={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:c,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:f}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:c,interpolation:f}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:f}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript}(Y),function(r){var c=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(c,"addSupport",{value:function(f,o){(f=typeof f=="string"?[f]:f).forEach(function(p){var h=function(b){b.inside||(b.inside={}),b.inside.rest=o},S="doc-comment";if(T=r.languages[p]){var T,m=T[S];if((m=m||(T=r.languages.insertBefore(p,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[S])instanceof RegExp&&(m=T[S]={pattern:m}),Array.isArray(m))for(var g=0,A=m.length;g<A;g++)m[g]instanceof RegExp&&(m[g]={pattern:m[g]}),h(m[g]);else h(m)}})}}),c.addSupport(["java","javascript","php"],c)}(Y),function(r){var c=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,c=(r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+c.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+c.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+c.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+c.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:c,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup);c&&(c.tag.addInlined("style","css"),c.tag.addAttribute("style","css"))}(Y),function(r){var c=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,c=(r.languages.css.selector={pattern:r.languages.css.selector.pattern,lookbehind:!0,inside:c={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+c.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[c,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=c,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),f={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:c,number:f,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:c,number:f})}(Y),function(r){var c=/[*&][^\s[\]{},]+/,f=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+f.source+"(?:[ ]+"+c.source+")?|"+c.source+"(?:[ ]+"+f.source+")?)",p=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function S(T,m){m=(m||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return T});return RegExp(g,m)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+p+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:S(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:S(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:S(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:S(h),lookbehind:!0,greedy:!0},number:{pattern:S(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:f,important:c,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml}(Y),function(r){var c=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function f(g){return g=g.replace(/<inner>/g,function(){return c}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,p=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,S=(r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+p+h+"(?:"+p+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+p+h+")(?:"+p+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+p+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+p+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:f(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:f(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:f(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:f(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(A){g!==A&&(r.languages.markdown[g].inside.content.inside[A]=r.languages.markdown[A])})}),r.hooks.add("after-tokenize",function(g){g.language!=="markdown"&&g.language!=="md"||function A(b){if(b&&typeof b!="string")for(var _=0,B=b.length;_<B;_++){var E,N=b[_];N.type!=="code"?A(N.content):(E=N.content[1],N=N.content[3],E&&N&&E.type==="code-language"&&N.type==="code-block"&&typeof E.content=="string"&&(E=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),E="language-"+(E=(/[a-z][\w-]*/i.exec(E)||[""])[0].toLowerCase()),N.alias?typeof N.alias=="string"?N.alias=[N.alias,E]:N.alias.push(E):N.alias=[E]))}}(g.tokens)}),r.hooks.add("wrap",function(g){if(g.type==="code-block"){for(var A="",b=0,_=g.classes.length;b<_;b++){var B=g.classes[b],B=/language-(.+)/.exec(B);if(B){A=B[1];break}}var E,N=r.languages[A];N?g.content=r.highlight(function(C){return C=C.replace(S,""),C=C.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(y,j){var U;return(j=j.toLowerCase())[0]==="#"?(U=j[1]==="x"?parseInt(j.slice(2),16):Number(j.slice(1)),m(U)):T[j]||y})}(g.content),N,A):A&&A!=="none"&&r.plugins.autoloader&&(E="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),g.attributes.id=E,r.plugins.autoloader.loadLanguages(A,function(){var C=document.getElementById(E);C&&(C.innerHTML=r.highlight(C.textContent,r.languages[A],A))}))}}),RegExp(r.languages.markup.tag.pattern.source,"gi")),T={amp:"&",lt:"<",gt:">",quot:'"'},m=String.fromCodePoint||String.fromCharCode;r.languages.md=r.languages.markdown}(Y),Y.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Y.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Y.hooks.add("after-tokenize",function(r){if(r.language==="graphql")for(var c=r.tokens.filter(function(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),f=0;f<c.length;){var o=c[f++];if(o.type==="keyword"&&o.content==="mutation"){var p=[];if(b(["definition-mutation","punctuation"])&&A(1).content==="("){f+=2;var h=_(/^\($/,/^\)$/);if(h===-1)continue;for(;f<h;f++){var S=A(0);S.type==="variable"&&(B(S,"variable-input"),p.push(S.content))}f=h+1}if(b(["punctuation","property-query"])&&A(0).content==="{"&&(f++,B(A(0),"property-mutation"),0<p.length)){var T=_(/^\{$/,/^\}$/);if(T!==-1)for(var m=f;m<T;m++){var g=c[m];g.type==="variable"&&0<=p.indexOf(g.content)&&B(g,"variable-input")}}}}function A(E){return c[f+E]}function b(E,N){N=N||0;for(var C=0;C<E.length;C++){var y=A(C+N);if(!y||y.type!==E[C])return}return 1}function _(E,N){for(var C=1,y=f;y<c.length;y++){var j=c[y],U=j.content;if(j.type==="punctuation"&&typeof U=="string"){if(E.test(U))C++;else if(N.test(U)&&--C===0)return y}}return-1}function B(E,N){var C=E.alias;C?Array.isArray(C)||(E.alias=C=[C]):E.alias=C=[],C.push(N)}}),Y.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(r){var c=r.languages.javascript["template-string"],f=c.pattern.source,o=c.inside.interpolation,p=o.inside["interpolation-punctuation"],h=o.pattern.source;function S(b,_){if(r.languages[b])return{pattern:RegExp("((?:"+_+")\\s*)"+f),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function T(b,_,B){return b={code:b,grammar:_,language:B},r.hooks.run("before-tokenize",b),b.tokens=r.tokenize(b.code,b.grammar),r.hooks.run("after-tokenize",b),b.tokens}function m(b,_,B){var C=r.tokenize(b,{interpolation:{pattern:RegExp(h),lookbehind:!0}}),E=0,N={},C=T(C.map(function(j){if(typeof j=="string")return j;for(var U,F,j=j.content;b.indexOf((F=E++,U="___"+B.toUpperCase()+"_"+F+"___"))!==-1;);return N[U]=j,U}).join(""),_,B),y=Object.keys(N);return E=0,function j(U){for(var F=0;F<U.length;F++){if(E>=y.length)return;var $,se,ne,pe,oe,ce,P,ie=U[F];typeof ie=="string"||typeof ie.content=="string"?($=y[E],(P=(ce=typeof ie=="string"?ie:ie.content).indexOf($))!==-1&&(++E,se=ce.substring(0,P),oe=N[$],ne=void 0,(pe={})["interpolation-punctuation"]=p,(pe=r.tokenize(oe,pe)).length===3&&((ne=[1,1]).push.apply(ne,T(pe[1],r.languages.javascript,"javascript")),pe.splice.apply(pe,ne)),ne=new r.Token("interpolation",pe,o.alias,oe),pe=ce.substring(P+$.length),oe=[],se&&oe.push(se),oe.push(ne),pe&&(j(ce=[pe]),oe.push.apply(oe,ce)),typeof ie=="string"?(U.splice.apply(U,[F,1].concat(oe)),F+=oe.length-1):ie.content=oe)):(P=ie.content,Array.isArray(P)?j(P):j([P]))}}(C),new r.Token(B,C,"language-"+B,b)}r.languages.javascript["template-string"]=[S("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),S("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),S("svg",/\bsvg/.source),S("markdown",/\b(?:markdown|md)/.source),S("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),S("sql",/\bsql/.source),c].filter(Boolean);var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function A(b){return typeof b=="string"?b:Array.isArray(b)?b.map(A).join(""):A(b.content)}r.hooks.add("after-tokenize",function(b){b.language in g&&function _(B){for(var E=0,N=B.length;E<N;E++){var C,y,j,U=B[E];typeof U!="string"&&(C=U.content,Array.isArray(C)?U.type==="template-string"?(U=C[1],C.length===3&&typeof U!="string"&&U.type==="embedded-code"&&(y=A(U),U=U.alias,U=Array.isArray(U)?U[0]:U,j=r.languages[U])&&(C[1]=m(y,j,U))):_(C):typeof C!="string"&&_([C]))}}(b.tokens)})}(Y),function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var c=r.languages.extend("typescript",{});delete c["class-name"],r.languages.typescript["class-name"].inside=c,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:c}}}}),r.languages.ts=r.languages.typescript}(Y),function(r){var c=r.languages.javascript,f=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+f+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:c,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return f})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+f),lookbehind:!0,inside:{string:c.string,number:c.number,boolean:c.boolean,keyword:r.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:c,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)}(Y),function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Y),Y.languages.n4js=Y.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Y.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Y.languages.n4jsd=Y.languages.n4js,function(r){function c(S,T){return RegExp(S.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),T)}r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),r.languages.insertBefore("javascript","keyword",{imports:{pattern:c(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:c(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:c(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var f=["function","function-variable","method","method-variable","property-access"],o=0;o<f.length;o++){var h=f[o],p=r.languages.javascript[h],h=(p=r.util.type(p)==="RegExp"?r.languages.javascript[h]={pattern:p}:p).inside||{};(p.inside=h)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Y),function(r){var c=r.util.clone(r.languages.javascript),f=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,p=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function h(m,g){return m=m.replace(/<S>/g,function(){return f}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return p}),RegExp(m,g)}p=h(p).source,r.languages.jsx=r.languages.extend("markup",c),r.languages.jsx.tag.pattern=h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=c.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:h(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:h(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);function S(m){for(var g=[],A=0;A<m.length;A++){var b=m[A],_=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<g.length&&g[g.length-1].tagName===T(b.content[0].content[1])&&g.pop():b.content[b.content.length-1].content!=="/>"&&g.push({tagName:T(b.content[0].content[1]),openedBraces:0}):0<g.length&&b.type==="punctuation"&&b.content==="{"?g[g.length-1].openedBraces++:0<g.length&&0<g[g.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?g[g.length-1].openedBraces--:_=!0),(_||typeof b=="string")&&0<g.length&&g[g.length-1].openedBraces===0&&(_=T(b),A<m.length-1&&(typeof m[A+1]=="string"||m[A+1].type==="plain-text")&&(_+=T(m[A+1]),m.splice(A+1,1)),0<A&&(typeof m[A-1]=="string"||m[A-1].type==="plain-text")&&(_=T(m[A-1])+_,m.splice(A-1,1),A--),m[A]=new r.Token("plain-text",_,null,_)),b.content&&typeof b.content!="string"&&S(b.content)}}var T=function(m){return m?typeof m=="string"?m:typeof m.content=="string"?m.content:m.content.map(T).join(""):""};r.hooks.add("after-tokenize",function(m){m.language!=="jsx"&&m.language!=="tsx"||S(m.tokens)})}(Y),function(r){var c=r.util.clone(r.languages.typescript),c=(r.languages.tsx=r.languages.extend("jsx",c),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"],r.languages.tsx.tag);c.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0}(Y),Y.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Y.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=Y.languages.swift}),function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var c={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:c},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:c},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin}(Y),Y.languages.c=Y.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Y.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Y.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Y.languages.c.string],char:Y.languages.c.char,comment:Y.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Y.languages.c}}}}),Y.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Y.languages.c.boolean,Y.languages.objectivec=Y.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Y.languages.objectivec["class-name"],Y.languages.objc=Y.languages.objectivec,Y.languages.reason=Y.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Y.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Y.languages.reason.function,function(r){for(var c=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,f=0;f<2;f++)c=c.replace(/<self>/g,function(){return c});c=c.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+c),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string}(Y),Y.languages.go=Y.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Y.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Y.languages.go["class-name"],function(r){var c=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,f=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return c.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return c.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:c,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return f})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(Y),Y.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Y.languages.python["string-interpolation"].inside.interpolation.inside.rest=Y.languages.python,Y.languages.py=Y.languages.python,Y.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Y.languages.webmanifest=Y.languages.json;var Et={};jy(Et,{dracula:()=>Dy,duotoneDark:()=>My,duotoneLight:()=>Uy,github:()=>Hy,gruvboxMaterialDark:()=>hm,gruvboxMaterialLight:()=>bm,jettwaveDark:()=>rm,jettwaveLight:()=>sm,nightOwl:()=>Gy,nightOwlLight:()=>Zy,oceanicNext:()=>Vy,okaidia:()=>Fy,oneDark:()=>cm,oneLight:()=>dm,palenight:()=>Ky,shadesOfPurple:()=>Iy,synthwave84:()=>Py,ultramin:()=>tm,vsDark:()=>kg,vsLight:()=>nm});var Ry={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Dy=Ry,zy={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},My=zy,Ly={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Uy=Ly,By={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Hy=By,qy={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Gy=qy,Yy={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Zy=Yy,St={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Xy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:St.keyword}},{types:["attr-value"],style:{color:St.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:St.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:St.primitive}},{types:["boolean"],style:{color:St.boolean}},{types:["tag"],style:{color:St.tag}},{types:["string"],style:{color:St.string}},{types:["punctuation"],style:{color:St.string}},{types:["selector","char","builtin","inserted"],style:{color:St.char}},{types:["function"],style:{color:St.function}},{types:["operator","entity","url","variable"],style:{color:St.variable}},{types:["keyword"],style:{color:St.keyword}},{types:["atrule","class-name"],style:{color:St.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Vy=Xy,Qy={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Fy=Qy,$y={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Ky=$y,Jy={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Iy=Jy,Wy={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Py=Wy,em={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},tm=em,lm={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},kg=lm,am={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},nm=am,im={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},rm=im,um={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},sm=um,om={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},cm=om,fm={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},dm=fm,gm={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},hm=gm,pm={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},bm=pm,ym=r=>H.useCallback(c=>{var f=c,{className:o,style:p,line:h}=f,S=Cg(f,["className","style","line"]);const T=sr(Yt({},S),{className:Tg("token-line",o)});return typeof r=="object"&&"plain"in r&&(T.style=r.plain),typeof p=="object"&&(T.style=Yt(Yt({},T.style||{}),p)),T},[r]),mm=r=>{const c=H.useCallback(({types:f,empty:o})=>{if(r!=null){{if(f.length===1&&f[0]==="plain")return o!=null?{display:"inline-block"}:void 0;if(f.length===1&&o!=null)return r[f[0]]}return Object.assign(o!=null?{display:"inline-block"}:{},...f.map(p=>r[p]))}},[r]);return H.useCallback(f=>{var o=f,{token:p,className:h,style:S}=o,T=Cg(o,["token","className","style"]);const m=sr(Yt({},T),{className:Tg("token",...p.types,h),children:p.content,style:c(p)});return S!=null&&(m.style=Yt(Yt({},m.style||{}),S)),m},[c])},vm=/\r\n|\r|\n/,Fd=r=>{r.length===0?r.push({types:["plain"],content:`
|
|
188
|
-
`,empty:!0}):r.length===1&&r[0].content===""&&(r[0].content=`
|
|
189
|
-
`,r[0].empty=!0)},$d=(r,c)=>{const f=r.length;return f>0&&r[f-1]===c?r:r.concat(c)},xm=r=>{const c=[[]],f=[r],o=[0],p=[r.length];let h=0,S=0,T=[];const m=[T];for(;S>-1;){for(;(h=o[S]++)<p[S];){let g,A=c[S];const _=f[S][h];if(typeof _=="string"?(A=S>0?A:["plain"],g=_):(A=$d(A,_.type),_.alias&&(A=$d(A,_.alias)),g=_.content),typeof g!="string"){S++,c.push(A),f.push(g),o.push(0),p.push(g.length);continue}const B=g.split(vm),E=B.length;T.push({types:A,content:B[0]});for(let N=1;N<E;N++)Fd(T),m.push(T=[]),T.push({types:A,content:B[N]})}S--,c.pop(),f.pop(),o.pop(),p.pop()}return Fd(T),m},Kd=xm,Sm=({prism:r,code:c,grammar:f,language:o})=>H.useMemo(()=>{if(f==null)return Kd([c]);const p={code:c,grammar:f,language:o,tokens:[]};return r.hooks.run("before-tokenize",p),p.tokens=r.tokenize(c,f),r.hooks.run("after-tokenize",p),Kd(p.tokens)},[c,f,o,r]),Em=(r,c)=>{const{plain:f}=r,o=r.styles.reduce((p,h)=>{const{languages:S,style:T}=h;return S&&!S.includes(c)||h.types.forEach(m=>{const g=Yt(Yt({},p[m]),T);p[m]=g}),p},{});return o.root=f,o.plain=sr(Yt({},f),{backgroundColor:void 0}),o},Nm=Em,Am=({children:r,language:c,code:f,theme:o,prism:p})=>{const h=c.toLowerCase(),S=Nm(o,h),T=ym(S),m=mm(S),g=p.languages[h],A=Sm({prism:p,language:h,code:f,grammar:g});return r({tokens:A,className:`prism-code language-${h}`,style:S!=null?S.root:{},getLineProps:T,getTokenProps:m})},wm=r=>H.createElement(Am,sr(Yt({},r),{prism:r.prism||Y,theme:r.theme||kg,code:r.code,language:r.language}));/*! Bundled license information:
|
|
190
|
-
|
|
191
|
-
prismjs/prism.js:
|
|
192
|
-
(**
|
|
193
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
194
|
-
*
|
|
195
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
196
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
197
|
-
* @namespace
|
|
198
|
-
* @public
|
|
199
|
-
*)
|
|
200
|
-
*/const Tm="modulepreload",_m=function(r){return"/"+r},Jd={},ft=function(c,f,o){let p=Promise.resolve();if(f&&f.length>0){let m=function(g){return Promise.all(g.map(A=>Promise.resolve(A).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const S=document.querySelector("meta[property=csp-nonce]"),T=S?.nonce||S?.getAttribute("nonce");p=m(f.map(g=>{if(g=_m(g),g in Jd)return;Jd[g]=!0;const A=g.endsWith(".css"),b=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const _=document.createElement("link");if(_.rel=A?"stylesheet":Tm,A||(_.as="script"),_.crossOrigin="",_.href=g,T&&_.setAttribute("nonce",T),document.head.appendChild(_),A)return new Promise((B,E)=>{_.addEventListener("load",B),_.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function h(S){const T=new Event("vite:preloadError",{cancelable:!0});if(T.payload=S,window.dispatchEvent(T),!T.defaultPrevented)throw S}return p.then(S=>{for(const T of S||[])T.status==="rejected"&&h(T.reason);return c().catch(h)})},ar={};function Og(r){if(!ar[r]){const f={bash:()=>ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await ft(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),ft(()=>import("./prism-php-gnpy0VQF.js").then(o=>o.p),[])),sql:()=>ft(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>ft(()=>import("./prism-ruby-CMkpRodx.js").then(o=>o.p),[]),java:()=>ft(()=>import("./prism-java-B6gV82l4.js").then(o=>o.p),[]),scala:async()=>(await Og("java"),ft(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>ft(()=>import("./prism-solidity-BDXCWkss.js").then(o=>o.p),[]),vim:()=>ft(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>ft(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>ft(()=>import("./prism-csharp-BTkEzOdP.js").then(o=>o.p),[]),protobuf:()=>ft(()=>import("./prism-protobuf-DiQ_z8B5.js"),[])}[r];if(!f)return console.warn(`No loader available for language: ${r}`),Promise.reject(new Error(`Unsupported language: ${r}`));ar[r]=f().then(()=>{}).catch(o=>{throw delete ar[r],console.warn(`Failed to load language: ${r}`,o),o})}return ar[r]}typeof global<"u"?global.Prism=Y:typeof window<"u"&&(window.Prism=Y);const Id=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function jm(r,c){const[f,o]=H.useState(()=>Id.includes(c)||!!Y.languages[c]);return H.useEffect(()=>{if(!f){if(Id.includes(c)){o(!0);return}Og(c).then(()=>{o(!0)}).catch(()=>{o(!1)})}},[c,f]),{ready:f,actualLang:f?c:"text"}}const Wd=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],Pd=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function Cm(r){return{...r,styles:r.styles.map(c=>({...c,style:{...c.style,background:void 0,backgroundColor:void 0}}))}}function km(r){let c;switch(r){case"github":c=Et.github;break;case"vsLight":c=Et.vsLight;break;case"oneLight":c=Et.oneLight;break;case"gruvboxMaterialLight":c=Et.gruvboxMaterialLight;break;case"nightOwlLight":c=Et.nightOwlLight;break;case"vsDark":c=Et.vsDark;break;case"oneDark":c=Et.oneDark;break;case"gruvboxMaterialDark":c=Et.gruvboxMaterialDark;break;case"nightOwl":c=Et.nightOwl;break;case"dracula":c=Et.dracula;break;case"okaidia":c=Et.okaidia;break;default:c=Et.vsDark}return Cm(c)}function Om(r){const c=gy(r).toLowerCase(),f=Eg(r),o={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return o[c]?o[c]:{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",perl:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf"}[f||""]||"text"}let Rg="";function Rm(r){Rg=r}function Dm({code:r,language:c,className:f,syntaxTheme:o="vsDark",renderToken:p,onMouseOver:h,onMouseOut:S}){const T=c||Om(Rg),{actualLang:m}=jm(r,T),g=km(o);return s.jsx(wm,{code:r,language:m,theme:g,prism:Y,children:({style:A,tokens:b,getLineProps:_,getTokenProps:B})=>s.jsx("span",{className:f,style:{...A,background:"transparent",backgroundColor:"transparent"},onMouseOver:h,onMouseOut:S,children:b.map((E,N)=>s.jsx("span",{..._({line:E}),children:E.map((C,y)=>p?p(C,y,B):s.jsx("span",{...B({token:C})},y))},N))})})}function Rs(r){const{handleMouseOver:c,handleMouseOut:f,isWordHighlighted:o}=Sy(),p=(h,S,T)=>{const m=T({token:h}),g=h.content.split(/( +)/);if(g.length===1&&g[0]&&!Vd(g[0]))return s.jsx("span",{...m},S);const A=g.map((b,_)=>{if(!b)return null;if(Vd(b)){const B=b.trim(),E=o(B);return s.jsx("span",{className:`word-token ${E?"word-highlight":""}`,"data-word":B,children:b},`${S}-${_}`)}return s.jsx("span",{children:b},`${S}-${_}`)});return s.jsx("span",{...m,children:A},S)};return s.jsx(Dm,{...r,renderToken:p,onMouseOver:c,onMouseOut:f})}const zm=r=>{switch(r.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},Mm=r=>{switch(r.type){case"add":return"+";case"delete":return"-";default:return" "}},Dg=Gn.memo(({line:r,lineId:c,isCurrentLine:f=!1,hoveredLine:o,selectedLineStyle:p,onMouseEnter:h,onMouseLeave:S,onMouseMove:T,onCommentButtonMouseDown:m,onCommentButtonMouseUp:g,syntaxTheme:A})=>{const b=r.newLineNumber||r.oldLineNumber,_=o===b&&b,B=f?"keyboard-cursor":"";return s.jsxs("tr",{id:c,className:`group ${zm(r)} relative ${p} ${B}`,onMouseEnter:h,onMouseLeave:S,onMouseMove:T,children:[s.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:r.oldLineNumber||""}),s.jsxs("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[s.jsx("span",{className:"pr-5",children:r.newLineNumber||""}),_&&s.jsx(nr,{onMouseDown:m,onMouseUp:g})]}),s.jsx("td",{className:"p-0 w-full relative align-top",children:s.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[s.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${r.type==="add"?"text-github-accent bg-diff-addition-bg":r.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:Mm(r)}),s.jsx(Rs,{code:r.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:A})]})})]})});Dg.displayName="DiffLineRow";function Lm({chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:h,onUpdateComment:S,syntaxTheme:T,cursor:m=null,fileIndex:g=0,commentTrigger:A,onCommentTriggerHandled:b}){const[_,B]=H.useState(null),[E,N]=H.useState(null),[C,y]=H.useState(!1),[j,U]=H.useState(null),[F,$]=H.useState(null);H.useEffect(()=>{if(A?.lineIndex!==void 0){const z=r.lines[A.lineIndex];if(z&&z.type!=="delete"){const ee=z.newLineNumber;ee&&(U({side:"new",lineNumber:ee}),b?.())}}},[A,r.lines,b]),H.useEffect(()=>{if(C){const z=()=>{y(!1),B(null),N(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[C]);const se=H.useCallback((z,ee)=>{j?.side===z&&j?.lineNumber===ee?U(null):U({side:z,lineNumber:ee})},[j]),ne=H.useCallback(()=>{U(null)},[]),pe=H.useCallback(async z=>{j!==null&&(await o(j.lineNumber,z),U(null))},[j,o]),oe=z=>f.filter(ee=>Array.isArray(ee.line)?ee.line[1]===z:ee.line===z),ce=z=>z.oldLine?.type==="delete"&&z.newLine?.type==="add"?z.newLineNumber?"right":"left":z.oldLine?.type==="delete"?"left":z.newLine?.type==="add"?"right":"full",P=(z,ee)=>{const O=z==="old"?ee.oldLineNumber:ee.newLineNumber;if(!O)return"";if(C&&_&&E&&_.side===z&&E.side===z){const Q=Math.min(_.lineNumber,E.lineNumber),V=Math.max(_.lineNumber,E.lineNumber);if(O>=Q&&O<=V){let te="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return O===Q&&(te+=" after:border-t-2"),O===V&&(te+=" after:border-b-2"),te}}if(j&&j.side===z){const Q=Array.isArray(j.lineNumber)?j.lineNumber:[j.lineNumber,j.lineNumber],V=Q[0],te=Q[1];if(V!==void 0&&te!==void 0&&O>=V&&O<=te)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},W=(z=>{const ee=[];let O=r.oldStart,Q=r.newStart,V=0;for(;V<z.length;){const te=z[V];if(!te){V++;continue}if(te.type==="normal")ee.push({oldLine:te,newLine:{...te},oldLineNumber:te.oldLineNumber??O,newLineNumber:te.newLineNumber??Q,oldLineOriginalIndex:V,newLineOriginalIndex:V}),O++,Q++,V++;else if(te.type==="delete"){let x=V+1;for(;x<z.length&&z[x]?.type==="delete";)x++;const q=z.slice(V,x),I=V,K=[],le=x;for(;x<z.length&&z[x]?.type==="add";){const J=z[x];J&&K.push(J),x++}const re=Math.max(q.length,K.length);for(let J=0;J<re;J++){const me=q[J],he=K[J];ee.push({oldLine:me,newLine:he,oldLineNumber:me?me.oldLineNumber??O+J:void 0,newLineNumber:he?he.newLineNumber??Q+J:void 0,oldLineOriginalIndex:me?I+J:void 0,newLineOriginalIndex:he?le+J:void 0})}O+=q.length,Q+=K.length,V=x}else te.type==="add"&&(ee.push({newLine:te,newLineNumber:te.newLineNumber??Q,newLineOriginalIndex:V}),Q++,V++)}return ee})(r.lines);return s.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:W.map((z,ee)=>{const O=z.newLineNumber?oe(z.newLineNumber):z.oldLineNumber?oe(z.oldLineNumber):[],Q=z.oldLineOriginalIndex??-1,V=z.newLineOriginalIndex??-1,te=m?m.side==="left"&&Q>=0?m.chunkIndex===c&&m.lineIndex===Q:m.side==="right"&&V>=0?m.chunkIndex===c&&m.lineIndex===V:!1:!1,x=Q>=0?`file-${g}-chunk-${c}-line-${Q}-left`:void 0,q=V>=0?`file-${g}-chunk-${c}-line-${V}-right`:void 0,I=te&&m?.side==="left",K=te&&m?.side==="right",le="keyboard-cursor";return s.jsxs(Gn.Fragment,{children:[s.jsxs("tr",{className:"group",onMouseEnter:re=>{const J=re.target,me=J.closest("td:nth-child(1)")||J.closest("td:nth-child(2)"),he=J.closest("td:nth-child(3)")||J.closest("td:nth-child(4)");me&&z.oldLineNumber?$({side:"old",lineNumber:z.oldLineNumber}):he&&z.newLineNumber&&$({side:"new",lineNumber:z.newLineNumber})},onMouseMove:re=>{const J=re.target,me=J.closest("td:nth-child(1)")||J.closest("td:nth-child(2)"),he=J.closest("td:nth-child(3)")||J.closest("td:nth-child(4)");me&&z.oldLineNumber?(F?.side!=="old"||F?.lineNumber!==z.oldLineNumber)&&$({side:"old",lineNumber:z.oldLineNumber}):he&&z.newLineNumber&&(F?.side!=="new"||F?.lineNumber!==z.newLineNumber)&&$({side:"new",lineNumber:z.newLineNumber}),C&&_&&(_.side==="old"&&z.oldLineNumber?N({side:"old",lineNumber:z.oldLineNumber}):_.side==="new"&&z.newLineNumber&&N({side:"new",lineNumber:z.newLineNumber}))},onMouseLeave:()=>$(null),children:[s.jsxs("td",{id:x,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${I?le:""}`,children:[s.jsx("span",{className:"pr-5",children:z.oldLineNumber||""}),F?.side==="old"&&F?.lineNumber===z.oldLineNumber&&s.jsx(nr,{onMouseDown:re=>{re.stopPropagation(),z.oldLineNumber&&(B({side:"old",lineNumber:z.oldLineNumber}),N({side:"old",lineNumber:z.oldLineNumber}),y(!0))},onMouseUp:re=>{if(re.stopPropagation(),!z.oldLineNumber||!_){y(!1),B(null),N(null);return}const J=E&&E.side==="old"?E.lineNumber:z.oldLineNumber;if(_.side!=="old"||_.lineNumber===J)se("old",z.oldLineNumber);else{const me=Math.min(_.lineNumber,J),he=Math.max(_.lineNumber,J);se("old",[me,he])}y(!1),B(null),N(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${z.oldLine?.type==="delete"?"bg-diff-deletion-bg":z.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${P("old",z)} ${I?le:""}`,children:z.oldLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Rs,{code:z.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:T})})}),s.jsxs("td",{id:q,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${K?le:""}`,children:[s.jsx("span",{className:"pr-5",children:z.newLineNumber||""}),F?.side==="new"&&F?.lineNumber===z.newLineNumber&&s.jsx(nr,{onMouseDown:re=>{re.stopPropagation(),z.newLineNumber&&(B({side:"new",lineNumber:z.newLineNumber}),N({side:"new",lineNumber:z.newLineNumber}),y(!0))},onMouseUp:re=>{if(re.stopPropagation(),!z.newLineNumber||!_){y(!1),B(null),N(null);return}const J=E&&E.side==="new"?E.lineNumber:z.newLineNumber;if(_.side!=="new"||_.lineNumber===J)se("new",z.newLineNumber);else{const me=Math.min(_.lineNumber,J),he=Math.max(_.lineNumber,J);se("new",[me,he])}y(!1),B(null),N(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top relative ${z.newLine?.type==="add"?"bg-diff-addition-bg":z.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${P("new",z)} ${K?le:""}`,children:z.newLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Rs,{code:z.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:T})})})]}),O.length>0&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:O.map(re=>{const J=ce(z);return s.jsx("div",{className:`flex ${J==="left"?"justify-start":J==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${J==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Hs,{comment:re,onGeneratePrompt:p,onRemoveComment:h,onUpdateComment:S})})},re.id)})})}),j&&(j.side==="old"&&j.lineNumber===z.oldLineNumber||j.side==="new"&&j.lineNumber===z.newLineNumber||Array.isArray(j.lineNumber)&&(j.side==="new"&&j.lineNumber[1]===z.newLineNumber||j.side==="old"&&j.lineNumber[1]===z.oldLineNumber))&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${ce(z)==="left"?"justify-start":ce(z)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${ce(z)==="full"?"w-full":"w-1/2"}`,children:s.jsx(Ng,{onSubmit:pe,onCancel:ne})})})})})]},ee)})})})})}function Um({chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:h,onUpdateComment:S,mode:T="inline",syntaxTheme:m,cursor:g=null,fileIndex:A=0,commentTrigger:b,onCommentTriggerHandled:_}){const[B,E]=H.useState(null),[N,C]=H.useState(null),[y,j]=H.useState(!1),[U,F]=H.useState(null),[$,se]=H.useState(null);H.useEffect(()=>{if(b?.lineIndex!==void 0){const W=r.lines[b.lineIndex];if(W){const z=W.newLineNumber||W.oldLineNumber;z&&(F(z),_?.())}}},[b,r.lines,_]),H.useEffect(()=>{if(y){const W=()=>{j(!1),E(null),C(null)};return document.addEventListener("mouseup",W),()=>{document.removeEventListener("mouseup",W)}}},[y]);const ne=H.useCallback(W=>{F(U===W?null:W)},[U]),pe=H.useCallback(()=>{F(null)},[]),oe=H.useCallback(async W=>{U!==null&&(await o(U,W),F(null))},[U,o]),ce=W=>f.filter(z=>Array.isArray(z.line)?z.line[1]===W:z.line===W),P=W=>{if(T==="inline")return"full";switch(W.type){case"delete":return"left";case"add":return"right";default:return"full"}},ie=W=>{if(!W)return"";if(y&&B&&N){const z=Math.min(B,N),ee=Math.max(B,N);if(W>=z&&W<=ee){let O="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return W===z&&(O+=" after:border-t-2"),W===ee&&(O+=" after:border-b-2"),O}}if(U){const z=Array.isArray(U)?U[0]:U,ee=Array.isArray(U)?U[1]:U;if(W>=z&&W<=ee)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""};return T==="side-by-side"?s.jsx(Lm,{chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:h,onUpdateComment:S,syntaxTheme:m,cursor:g,fileIndex:A,commentTrigger:b,onCommentTriggerHandled:_}):s.jsx("div",{className:"bg-github-bg-primary",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:r.lines.map((W,z)=>{const ee=ce(W.newLineNumber||W.oldLineNumber||0),O=`file-${A}-chunk-${c}-line-${z}`,Q=g&&g.chunkIndex===c&&g.lineIndex===z;return s.jsxs(Gn.Fragment,{children:[s.jsx(Dg,{line:W,index:z,lineId:O,isCurrentLine:Q||!1,hoveredLine:$,selectedLineStyle:ie(W.newLineNumber||W.oldLineNumber),onMouseEnter:()=>{const V=W.newLineNumber||W.oldLineNumber;V&&se(V)},onMouseLeave:()=>se(null),onMouseMove:()=>{if(y&&B){const V=W.newLineNumber||W.oldLineNumber;V&&C(V)}},onCommentButtonMouseDown:V=>{V.stopPropagation();const te=W.newLineNumber||W.oldLineNumber;te&&(E(te),C(te),j(!0))},onCommentButtonMouseUp:V=>{V.stopPropagation();const te=W.newLineNumber||W.oldLineNumber;if(!te||!B){j(!1),E(null),C(null);return}const x=N||te;if(B===x)ne(te);else{const q=Math.min(B,x),I=Math.max(B,x);ne([q,I])}j(!1),E(null),C(null)},syntaxTheme:m}),ee.map(V=>{const te=P(W);return s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${te==="left"?"justify-start":te==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${te==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Hs,{comment:V,onGeneratePrompt:p,onRemoveComment:h,onUpdateComment:S})})})})},V.id)}),U&&(U===(W.newLineNumber||W.oldLineNumber)||Array.isArray(U)&&U[1]===(W.newLineNumber||W.oldLineNumber))&&s.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-[var(--border-muted)]",children:s.jsx("div",{className:`flex ${P(W)==="left"?"justify-start":P(W)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${P(W)==="full"?"w-full":"w-1/2"}`,children:s.jsx(Ng,{onSubmit:oe,onCancel:pe})})})})})]},z)})})})})}function Bm({file:r,mode:c="inline",baseCommitish:f,targetCommitish:o}){const p=r.status==="deleted",h=r.status==="added",S=r.status==="modified"||r.status==="renamed",T=f||"HEAD~1",m=o||"HEAD",[g,A]=H.useState({}),[b,_]=H.useState({}),B=async(y,j)=>{try{const U=y.naturalWidth,F=y.naturalHeight,ne=(await(await fetch(y.src)).blob()).size;j({width:U,height:F,size:ne})}catch(U){console.error("Failed to get image info:",U)}},E=y=>y?y<1024?`${y} B`:y<1024*1024?`${(y/1024).toFixed(1)} KB`:`${(y/(1024*1024)).toFixed(1)} MB`:"",N=y=>!y.width||!y.height?"":`W: ${y.width}px | H: ${y.height}px`,C={backgroundImage:`
|
|
201
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
202
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
203
|
-
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return p?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,A),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&E(g.size)&&" | ",E(g.size)]})]})]})}):h?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${m}`,alt:`New image ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,_),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&E(b.size)&&" | ",E(b.size)]})]})]})}):S?c==="side-by-side"?s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,A),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&E(g.size)&&" | ",E(g.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${m}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,_),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&E(b.size)&&" | ",E(b.size)]})]})})]})]}):s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,A),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(g.width||g.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(g),N(g)&&E(g.size)&&" | ",E(g.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${m}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:y=>B(y.currentTarget,_),onError:y=>{const j=y.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&E(b.size)&&" | ",E(b.size)]})]})})]})]}):null}function Hm({file:r,comments:c,diffMode:f,reviewedFiles:o,onToggleReviewed:p,onAddComment:h,onGeneratePrompt:S,onRemoveComment:T,onUpdateComment:m,syntaxTheme:g,baseCommitish:A,targetCommitish:b,cursor:_=null,fileIndex:B=0,commentTrigger:E,onCommentTriggerHandled:N}){const C=o.has(r.path),[y,j]=H.useState(!1);Rm(r.path);const U=$=>{switch($){case"added":return s.jsx(yg,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(mg,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(bg,{size:16,className:"text-github-warning"});default:return s.jsx(pg,{size:16,className:"text-github-text-secondary"})}},F=async($,se,ne)=>{try{await h(r.path,$,se,ne)}catch(pe){console.error("Failed to add comment:",pe)}};return s.jsxs("div",{className:"bg-github-bg-primary",children:[s.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>p(r.path),className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:C?"Expand file":"Collapse file",children:C?s.jsx(gg,{size:16}):s.jsx(Us,{size:16})}),U(r.status),s.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.path}),s.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${y?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(r.path).then(()=>{console.log("File path copied to clipboard:",r.path),j(!0),setTimeout(()=>j(!1),2e3)}).catch($=>{console.error("Failed to copy file path:",$)})},title:"Copy file path",children:y?s.jsx(qn,{size:14}):s.jsx(hg,{size:14})}),r.oldPath&&r.oldPath!==r.path&&s.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.oldPath,")"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",r.additions]}),s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),s.jsxs("button",{onClick:()=>p(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${o.has(r.path)?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:o.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[o.has(r.path)?s.jsx(qn,{size:14}):s.jsx(oy,{size:14}),"Viewed"]})]})]}),!C&&s.jsx("div",{className:"overflow-y-auto",children:py(r.path)?s.jsx(Bm,{file:r,mode:f,baseCommitish:A,targetCommitish:b}):r.chunks.map(($,se)=>s.jsxs("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${se}`,className:"border-b border-github-border",children:[s.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:s.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:$.header})}),s.jsx(Um,{chunk:$,chunkIndex:se,comments:c,onAddComment:F,onGeneratePrompt:S,onRemoveComment:T,onUpdateComment:m,mode:f,syntaxTheme:g,cursor:_,fileIndex:B,commentTrigger:E?.chunkIndex===se?E:null,onCommentTriggerHandled:N})]},se))})]})}function qm(r){const c={name:"",path:"",isDirectory:!0,children:[]};r.forEach(o=>{const p=o.path.split("/");let h=c;for(let S=0;S<p.length;S++){const T=p[S];if(!T)continue;const m=S===p.length-1,g=p.slice(0,S+1).join("/");h.children||(h.children=[]);let A=h.children.find(b=>b.name===T);A||(A={name:T,path:g,isDirectory:!m,children:m?void 0:[],file:m?o:void 0},h.children.push(A)),h=A}});const f=o=>{if(!o.isDirectory||!o.children)return o;if(o.children=o.children.map(f),o.children.length===1&&o.children[0]?.isDirectory&&o.children[0]?.children){const p=o.children[0];if(p)return o.name?{...o,name:`${o.name}/${p.name}`,path:p.path,children:p.children}:o}return o};return f(c)}function Gm({files:r,onScrollToFile:c,comments:f,reviewedFiles:o,onToggleReviewed:p}){const h=qm(r),S=y=>{if(!y.isDirectory||!y.children)return[];const j=[];return y.path&&j.push(y.path),y.children.forEach(U=>{j.push(...S(U))}),j},[T,m]=H.useState(()=>new Set(S(h))),[g,A]=H.useState(""),b=y=>f.filter(j=>j.file===y).length,_=y=>{if(!g.trim())return y;if(y.isDirectory&&y.children){const j=y.children.map(U=>_(U)).filter(U=>U!==null);return j.length>0?{...y,children:j}:null}else if(y.file)return y.file.path.toLowerCase().includes(g.toLowerCase())?y:null;return null},B=_(h)||{...h,children:[]},E=y=>{switch(y){case"added":return s.jsx(yg,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(mg,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(bg,{size:16,className:"text-github-warning"});default:return s.jsx(pg,{size:16,className:"text-github-text-secondary"})}},N=y=>{m(j=>{const U=new Set(j);return U.has(y)?U.delete(y):U.add(y),U})},C=(y,j=0)=>{if(y.isDirectory&&y.children){const U=T.has(y.path);return s.jsxs("div",{children:[y.name&&s.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${j*16+16}px`},onClick:()=>N(y.path),children:[U?s.jsx(Us,{size:16}):s.jsx(gg,{size:16}),U?s.jsx(Vb,{size:16,className:"text-github-text-secondary"}):s.jsx(Fb,{size:16,className:"text-github-text-secondary"}),s.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:y.name,children:y.name})]}),(U||!y.name)&&y.children.map(F=>C(F,j+1))]},y.path)}else if(y.file){const U=y.file,F=b(U.path),$=o.has(U.path);return s.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${$?"opacity-70":""}`,style:{paddingLeft:`${j*16+16}px`},onClick:()=>c(U.path),children:[s.jsx(Sg,{checked:$,onChange:()=>{p(U.path)},title:$?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E(y.file.status),s.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${$?"line-through text-github-text-muted":""}`,title:y.file.path,children:y.name}),F>0&&s.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[s.jsx(vg,{size:14}),F]})]},U.path)}return null};return s.jsxs("div",{className:"h-full flex flex-col",children:[s.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[s.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0 mb-3",children:["Files changed (",r.length,")"]}),s.jsxs("div",{className:"relative",children:[s.jsx(ry,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),s.jsx("input",{type:"text",placeholder:"Filter files...",value:g,onChange:y=>A(y.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto",children:B.children?.map(y=>C(y))})]})}function Ym({style:r}){return s.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:r,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function Zm({isOpen:r,onClose:c}){const{enableScope:f,disableScope:o}=rr();return ze("escape",()=>c(),{enabled:r},[c,r]),H.useEffect(()=>(r?o("navigation"):f("navigation"),()=>{f("navigation")}),[r,f,o]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:c}),s.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[s.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),s.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:s.jsx(Bs,{size:20})})]}),s.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"r"}),s.jsx("span",{className:"text-github-text-secondary",children:"Toggle review state of current file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),s.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-secondary",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),s.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),s.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),s.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:s.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function Xm({style:r}){return s.jsxs("svg",{style:r,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function Vm({shouldReload:r,isReloading:c,onReload:f,changeType:o,className:p=""}){if(!r)return null;const h=()=>{switch(o){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return s.jsxs("button",{onClick:f,disabled:c,className:`
|
|
204
|
-
flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-all duration-200 ${p}
|
|
205
|
-
${c?"bg-orange-700 text-white border-orange-800 cursor-not-allowed":"bg-orange-700 text-white border-orange-800 hover:bg-orange-800 hover:border-orange-900"}
|
|
206
|
-
`,title:c?"Reloading...":`${h()} - Click to reload`,children:[s.jsx(ny,{size:12,className:`${c?"animate-spin":""}`}),c?"Reloading...":"Reload"]})}const Qm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Fm=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function $m({isOpen:r,onClose:c,settings:f,onSettingsChange:o}){const[p,h]=H.useState(f),{enableScope:S,disableScope:T}=rr();H.useEffect(()=>{h(f)},[f]),H.useEffect(()=>{o(p)},[p,o]),H.useEffect(()=>(r?T("navigation"):S("navigation"),()=>{S("navigation")}),[r,S,T]);const m=()=>p.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":p.theme,g=()=>m()==="light"?Wd:Pd,A=_=>{const B={...p,theme:_},N=(_==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":_)==="light"?Wd:Pd;if(!N.some(y=>y.id===p.syntaxTheme)&&N.length>0){const y=N[0];y&&(B.syntaxTheme=y.id)}h(B)},b=()=>{h(Qm)};return r?s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:s.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[s.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[s.jsx(xg,{size:20}),"Appearance Settings"]}),s.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:s.jsx(Bs,{size:18})})]}),s.jsxs("div",{className:"p-4 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:p.fontSize,onChange:_=>h({...p,fontSize:parseInt(_.target.value)}),className:"flex-1 accent-github-accent"}),s.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[p.fontSize,"px"]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),s.jsx("select",{value:p.fontFamily,onChange:_=>h({...p,fontFamily:_.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:Fm.map(_=>s.jsx("option",{value:_.value,children:_.name},_.value))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),s.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(_=>s.jsx("button",{onClick:()=>A(_),className:`px-3 py-2 text-sm rounded border transition-colors ${p.theme===_?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:_.charAt(0).toUpperCase()+_.slice(1)},_))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),s.jsx("select",{value:p.syntaxTheme,onChange:_=>h({...p,syntaxTheme:_.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:g().map(_=>s.jsx("option",{value:_.id,children:_.label},_.id))})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[s.jsx("button",{onClick:b,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),s.jsx("button",{onClick:c,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const eg={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},Km=({isActive:r})=>r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"animate-sparkle-rise",style:{...eg,left:"-12px",animationDelay:"0s"},children:"✨"}),s.jsx("div",{className:"animate-sparkle-rise",style:{...eg,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,tg={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},lg="reviewit-appearance-settings";function Jm(){const[r,c]=H.useState(tg);H.useEffect(()=>{try{const p=localStorage.getItem(lg);if(p){const h=JSON.parse(p);c({...tg,...h})}}catch(p){console.warn("Failed to load appearance settings from localStorage:",p)}},[]),H.useEffect(()=>{const p=document.documentElement;if(p.style.setProperty("--app-font-size",`${r.fontSize}px`),p.style.setProperty("--app-font-family",r.fontFamily),r.theme==="auto"){const h=window.matchMedia("(prefers-color-scheme: dark)");f(h.matches?"dark":"light");const S=T=>{f(T.matches?"dark":"light")};return h.addEventListener("change",S),()=>h.removeEventListener("change",S)}else{f(r.theme);return}},[r]);const f=p=>{const h=document.documentElement;h.setAttribute("data-theme",p),p==="light"?(h.style.setProperty("--color-github-bg-primary","#ffffff"),h.style.setProperty("--color-github-bg-secondary","#f6f8fa"),h.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),h.style.setProperty("--color-github-border","#d1d9e0"),h.style.setProperty("--color-github-text-primary","#24292f"),h.style.setProperty("--color-github-text-secondary","#656d76"),h.style.setProperty("--color-github-text-muted","#8c959f"),h.style.setProperty("--color-github-accent","#1f883d"),h.style.setProperty("--color-github-danger","#cf222e"),h.style.setProperty("--color-github-warning","#bf8700"),h.style.setProperty("--color-diff-addition-bg","#d1f4cd"),h.style.setProperty("--color-diff-addition-border","#1f883d"),h.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),h.style.setProperty("--color-diff-deletion-border","#cf222e"),h.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),h.style.setProperty("--color-comment-bg","#fff8e1"),h.style.setProperty("--color-comment-border","#ffd54f"),h.style.setProperty("--color-comment-text","#5d4037"),h.style.setProperty("--color-yellow-btn-bg","#fef3c7"),h.style.setProperty("--color-yellow-btn-border","#f59e0b"),h.style.setProperty("--color-yellow-btn-text","#92400e"),h.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","#fde68a"),h.style.setProperty("--color-yellow-path-text","#92400e")):(h.style.setProperty("--color-github-bg-primary","#0d1117"),h.style.setProperty("--color-github-bg-secondary","#161b22"),h.style.setProperty("--color-github-bg-tertiary","#21262d"),h.style.setProperty("--color-github-border","#30363d"),h.style.setProperty("--color-github-text-primary","#f0f6fc"),h.style.setProperty("--color-github-text-secondary","#8b949e"),h.style.setProperty("--color-github-text-muted","#6e7681"),h.style.setProperty("--color-github-accent","#238636"),h.style.setProperty("--color-github-danger","#da3633"),h.style.setProperty("--color-github-warning","#d29922"),h.style.setProperty("--color-diff-addition-bg","#0d4429"),h.style.setProperty("--color-diff-addition-border","#1b7c3d"),h.style.setProperty("--color-diff-deletion-bg","#67060c"),h.style.setProperty("--color-diff-deletion-border","#da3633"),h.style.setProperty("--color-diff-neutral-bg","#21262d"),h.style.setProperty("--color-comment-bg","#1c2128"),h.style.setProperty("--color-comment-border","#373e47"),h.style.setProperty("--color-comment-text","#e6edf3"),h.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),h.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),h.style.setProperty("--color-yellow-btn-text","#fbbf24"),h.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"};return{settings:r,updateSettings:p=>{c(p);try{localStorage.setItem(lg,JSON.stringify(p))}catch(h){console.warn("Failed to save appearance settings to localStorage:",h)}}}}var zg=(r=>(r.DEFAULT="default",r.WORKING="working",r.STAGED="staged",r.DOT="dot",r.SPECIFIC="specific",r))(zg||{});function Im(r){const c=H.useRef(null),f=H.useRef(null),o=H.useRef(0),p=5,h=3e3,[S,T]=H.useState({isWatchEnabled:!1,diffMode:zg.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[m,g]=H.useState(null),A=H.useCallback(()=>{if(!c.current)try{const B=new EventSource("/api/watch");c.current=B,B.onopen=()=>{console.log("Connected to file watch service"),T(E=>({...E,connectionStatus:"connected"})),o.current=0,g(null)},B.onmessage=E=>{try{const N=JSON.parse(E.data);switch(N.type){case"connected":T(C=>({...C,isWatchEnabled:!0,diffMode:N.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",N.changeType),T(C=>({...C,shouldReload:!0,lastChangeTime:new Date,lastChangeType:N.changeType}));break;case"error":console.error("File watch error:",N.message),g(N.message||"File watch error occurred");break}}catch(N){console.error("Error parsing watch event:",N)}},B.onerror=()=>{console.log("File watch connection lost"),T(E=>({...E,connectionStatus:"disconnected"})),c.current&&(c.current.close(),c.current=null),o.current<p?(T(E=>({...E,connectionStatus:"reconnecting"})),o.current+=1,f.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${o.current}/${p})...`),A()},h)):(console.error("Max reconnection attempts reached"),g("Lost connection to file watch service"))}}catch(B){console.error("Failed to connect to file watch service:",B),g("Failed to connect to file watch service")}},[p,h]),b=H.useCallback(async()=>{if(!S.isReloading){T(B=>({...B,isReloading:!0}));try{r&&await r(),T(B=>({...B,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(B){console.error("Reload failed:",B),g("Failed to reload diff data"),T(E=>({...E,isReloading:!1}))}}},[r,S.isReloading]),_=()=>{c.current&&(c.current.close(),c.current=null),f.current&&(clearTimeout(f.current),f.current=null)};return H.useEffect(()=>(A(),_),[A]),H.useEffect(()=>_,[]),{shouldReload:S.shouldReload,isConnected:S.connectionStatus==="connected",error:m,reload:b,watchState:S}}const Ds={SCROLL_CONTAINER:"main.overflow-y-auto"};function Ua(r,c){const f=`file-${r.fileIndex}-chunk-${r.chunkIndex}-line-${r.lineIndex}`;return c==="side-by-side"?`${f}-${r.side}`:f}function Mg(r,c){return`${r}:${c}`}function Wm(r,c){const f=c[r.fileIndex]?.chunks[r.chunkIndex]?.lines[r.lineIndex];return f&&(f.type==="add"||f.type==="delete"||f.type==="normal")?f.type:null}function Nt(r,c){const f=Wm(r,c);return f?f==="normal"?!0:f==="delete"?r.side==="left":f==="add"?r.side==="right":!1:!1}function Lg(r,c){return Nt(r,c)?r:{...r,side:r.side==="left"?"right":"left"}}const ag={VIEWPORT_OFFSET_RATIO:1/3};function Pm(r,c,f,o){return{line:p=>{const h=r[p.fileIndex];return!h||o?.has(h.path)?!1:f==="inline"||Nt(p,r)},chunk:p=>{const h=r[p.fileIndex];if(!h||o?.has(h.path))return!1;const S=h.chunks[p.chunkIndex]?.lines[p.lineIndex];if(!S||S.type==="normal")return!1;if(p.lineIndex===0)return!0;const T=h.chunks[p.chunkIndex]?.lines[p.lineIndex-1];return!T||T.type==="normal"},comment:p=>{const h=r[p.fileIndex];if(!h||o?.has(h.path))return!1;const S=h.chunks[p.chunkIndex]?.lines[p.lineIndex];if(!S||S.type==="delete")return!1;const T=S.newLineNumber;if(!T)return!1;const m=Mg(h.path,T);return c.has(m)},file:p=>p.chunkIndex===0&&p.lineIndex===0}}function e0(){return r=>{const c=document.getElementById(r);if(!c)return;const f=document.querySelector(Ds.SCROLL_CONTAINER);if(!f)throw new Error(`Scrollable container (${Ds.SCROLL_CONTAINER}) not found`);const o=c.getBoundingClientRect(),p=f.getBoundingClientRect(),h=f.clientHeight,S=f.scrollTop,T=Math.max(p.top,0),m=Math.min(p.bottom,window.innerHeight);if(!(o.top>=T&&o.bottom<=m)){const N=t0(c,f)-h*ag.VIEWPORT_OFFSET_RATIO;f.scrollTop=Math.max(0,N);return}const A=o.bottom>Math.min(p.bottom,window.innerHeight),_=c.offsetTop-f.offsetTop-h*ag.VIEWPORT_OFFSET_RATIO,B=_>S;A&&B&&(f.scrollTop=Math.max(0,_))}}function t0(r,c){let f=r,o=0;for(;f&&f!==c&&f.offsetParent;)o+=f.offsetTop,f=f.offsetParent;return f&&f!==c&&(o+=f.offsetTop),o}function l0(r){return r||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function a0(r,c,f){return f&&r.fileIndex===c.fileIndex&&r.chunkIndex===c.chunkIndex&&r.lineIndex===c.lineIndex}function n0(r,c,f){let{fileIndex:o,chunkIndex:p,lineIndex:h}=r;const S=f.length;let T=0;if(c==="next")for(h++;T<S;){if(f[o]?.chunks[p]?.lines[h])return{...r,fileIndex:o,chunkIndex:p,lineIndex:h};p++,h=0,f[o]?.chunks[p]||(o++,p=0,h=0,o>=S&&(o=0,T++))}else for(h--;T<S;){if(h<0)if(p--,p<0){o--,o<0&&(o=S-1,T++);const m=f[o];if(m&&m.chunks.length>0){p=m.chunks.length-1;const g=m.chunks[p];h=g&&g.lines.length>0?g.lines.length-1:-1}else p=-1,h=-1}else{const m=f[o]?.chunks[p];h=m&&m.lines.length>0?m.lines.length-1:-1}if(h>=0&&f[o]?.chunks[p]?.lines[h])return{...r,fileIndex:o,chunkIndex:p,lineIndex:h};h<0||h--}return null}function i0(r,c,f,o,p){let h=r,S=!1;for(;h;){const T=n0(h,c,o);if(!T||(h=T,a0(h,r,S)))break;if(S=!0,f(h,o)){const m=Lg(h,o);return{position:m,scrollTarget:Ua(m,p)}}}return{position:null,scrollTarget:null}}function r0({files:r,comments:c,viewMode:f="inline",reviewedFiles:o,onToggleReviewed:p,onCreateComment:h,onCopyAllComments:S,onDeleteAllComments:T,onShowCommentsList:m}){const[g,A]=H.useState(null),[b,_]=H.useState(!1),B=H.useMemo(()=>e0(),[]),E=H.useMemo(()=>{const ce=new Map;return c.forEach(P=>{const ie=Array.isArray(P.line)?P.line[0]:P.line,W=Mg(P.file,ie);ce.has(W)||ce.set(W,[]),ce.get(W)?.push(P)}),ce},[c]),N=H.useMemo(()=>Pm(r,E,f,o),[r,E,f,o]),C=H.useCallback((ce,P)=>{if(r.length===0)return{position:null,scrollTarget:null};const ie=l0(g);return i0(ie,ce,P,r,f)},[g,r,f]),y=H.useCallback(ce=>P=>{const ie=C(P,ce);ie.position&&(A(ie.position),ie.scrollTarget&&B(ie.scrollTarget))},[C,B]),j=H.useMemo(()=>y(N.line),[y,N.line]),U=H.useMemo(()=>y(N.chunk),[y,N.chunk]),F=H.useMemo(()=>y(N.file),[y,N.file]),$=H.useMemo(()=>y(N.comment),[y,N.comment]),se=H.useCallback(ce=>{if(!g||f!=="side-by-side")return;let P={...g,side:ce};const ie=r[g.fileIndex]?.chunks[g.chunkIndex]?.lines[g.lineIndex];if(ie){if(ce==="left"&&ie.type==="add"&&g.lineIndex>0){if(r[g.fileIndex]?.chunks[g.chunkIndex]?.lines[g.lineIndex-1]?.type==="delete"){P={...P,lineIndex:g.lineIndex-1},A(P),B(Ua(P,f));return}}else if(ce==="right"&&ie.type==="delete"&&r[g.fileIndex]?.chunks[g.chunkIndex]?.lines[g.lineIndex+1]?.type==="add"){P={...P,lineIndex:g.lineIndex+1},A(P),B(Ua(P,f));return}}if(!Nt(P,r)){const W=r[g.fileIndex];if(!W)return;const z=W.chunks[g.chunkIndex];if(z){for(let ee=g.lineIndex+1;ee<z.lines.length;ee++){const O={...P,lineIndex:ee};if(Nt(O,r)){P=O;break}}if(!Nt(P,r))for(let ee=g.lineIndex-1;ee>=0;ee--){const O={...P,lineIndex:ee};if(Nt(O,r)){P=O;break}}}if(!Nt(P,r)){for(let ee=g.chunkIndex+1;ee<W.chunks.length;ee++){const O=W.chunks[ee];if(O){for(let Q=0;Q<O.lines.length;Q++){const V={...P,chunkIndex:ee,lineIndex:Q};if(Nt(V,r)){P=V;break}}if(Nt(P,r))break}}if(!Nt(P,r))for(let ee=g.chunkIndex-1;ee>=0;ee--){const O=W.chunks[ee];if(O){for(let Q=O.lines.length-1;Q>=0;Q--){const V={...P,chunkIndex:ee,lineIndex:Q};if(Nt(V,r)){P=V;break}}if(Nt(P,r))break}}}}A(P),B(Ua(P,f))},[g,f,B,r]),ne=H.useCallback(()=>{const ce=document.querySelector(Ds.SCROLL_CONTAINER);if(!ce)return;const P=ce.getBoundingClientRect(),ie=P.top+P.height/2;let W=1/0,z=null;r.forEach((ee,O)=>{ee.chunks.forEach((Q,V)=>{Q.lines.forEach((te,x)=>{const q=f==="side-by-side"?["left","right"]:["right"];for(const I of q){const K={fileIndex:O,chunkIndex:V,lineIndex:x,side:I};if(f==="side-by-side"&&!Nt(K,r))continue;const le=Ua(K,f),re=document.getElementById(le);if(re){const J=re.getBoundingClientRect(),me=J.top+J.height/2,he=Math.abs(me-ie);J.top<P.bottom&&J.bottom>P.top&&he<W&&(W=he,z=K)}}})})}),z&&A(z)},[r,f,A]),pe=H.useCallback(ce=>{const P=Lg(ce,r);A(P),B(Ua(P,f))},[r,f,B]),oe={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return ze("j, down",()=>j("next"),oe,[j]),ze("k, up",()=>j("prev"),oe,[j]),ze("n",()=>U("next"),oe,[U]),ze("p",()=>U("prev"),oe,[U]),ze("shift+n",()=>$("next"),oe,[$]),ze("shift+p",()=>$("prev"),oe,[$]),ze("]",()=>F("next"),{...oe,useKey:!0},[F]),ze("[",()=>F("prev"),{...oe,useKey:!0},[F]),ze("h, left",()=>se("left"),{...oe,enabled:f==="side-by-side"},[se,f]),ze("l, right",()=>se("right"),{...oe,enabled:f==="side-by-side"},[se,f]),ze("r",()=>{if(g){const ce=r[g.fileIndex];ce&&p(ce.path)}},oe,[g,r,p]),ze("c",()=>{if(g&&h){const ce=r[g.fileIndex]?.chunks[g.chunkIndex]?.lines[g.lineIndex];ce&&ce.type!=="delete"&&h()}},oe,[g,r,h]),ze("?",()=>_(!b),{...oe,useKey:!0},[b]),ze(".",()=>ne(),{...oe,useKey:!0},[ne]),ze("shift+c",()=>{S&&S()},{...oe,scopes:["navigation","comments-list"]},[S]),ze("shift+d",()=>{T&&T()},{...oe,scopes:["navigation","comments-list"]},[T]),ze("shift+l",()=>{m&&m()},oe,[m]),{cursor:g,isHelpOpen:b,setIsHelpOpen:_,setCursorPosition:pe}}function u0(r){const[c,f]=H.useState([]),o=r?`difit-comments-${r}`:"difit-comments";H.useEffect(()=>{const A=localStorage.getItem(o);if(A)try{f(JSON.parse(A))}catch(b){console.error("Failed to parse saved comments:",b)}},[o]),H.useEffect(()=>{localStorage.setItem(o,JSON.stringify(c))},[c,o]);const p=(A,b,_,B)=>{console.log("Adding comment with codeContent:",B);const E={id:`${A}:${Array.isArray(b)?`${b[0]}-${b[1]}`:b}:${Date.now()}`,file:A,line:b,body:_,timestamp:new Date().toISOString(),codeContent:B};return f(N=>[...N,E]),E},h=A=>{f(b=>b.filter(_=>_.id!==A))},S=(A,b)=>{f(_=>_.map(B=>B.id===A?{...B,body:b}:B))},T=()=>{f([]),localStorage.removeItem(o)},m=A=>Array.isArray(A.line)?`${A.file}:L${A.line[0]}-L${A.line[1]}
|
|
207
|
-
${A.body}`:`${A.file}:L${A.line}
|
|
208
|
-
${A.body}`;return{comments:c,addComment:p,removeComment:h,updateComment:S,clearAllComments:T,generatePrompt:m,generateAllCommentsPrompt:()=>c.length===0?"No comments available.":c.map(m).join(`
|
|
209
|
-
=====
|
|
210
|
-
`)}}const ks=new Map;let s0=0;function Os(r){return ks.has(r)||ks.set(r,`file-${++s0}`),ks.get(r)??""}function o0(r,c,f){for(let o=0;o<r.chunks.length;o++){const p=r.chunks[o];if(p)for(let h=0;h<p.lines.length;h++){const S=p.lines[h];if(!S)continue;if((S.newLineNumber||S.oldLineNumber)===f)return{fileIndex:c,chunkIndex:o,lineIndex:h,side:S.newLineNumber?"right":"left"}}}return null}function c0(r,c){const f=c.findIndex(h=>h.path===r.file);if(f===-1)return null;const o=c[f];if(!o)return null;const p=Array.isArray(r.line)?r.line[1]:r.line;return o0(o,f,p)}function f0(){const[r,c]=H.useState(null),[f,o]=H.useState(new Set),[p,h]=H.useState("side-by-side"),[S,T]=H.useState(!0),[m,g]=H.useState(!0),[A,b]=H.useState(null),[_,B]=H.useState(!1),[E,N]=H.useState(320),[C,y]=H.useState(!1),[j,U]=H.useState(!0),[F,$]=H.useState(!1),[se,ne]=H.useState(!1),[pe,oe]=H.useState(!1),[ce,P]=H.useState(!1),{settings:ie,updateSettings:W}=Jm(),{comments:z,addComment:ee,removeComment:O,updateComment:Q,clearAllComments:V,generatePrompt:te,generateAllCommentsPrompt:x}=u0(r?.commit),q=be=>{o(Te=>{const Ye=new Set(Te);return Ye.has(be)?Ye.delete(be):(Ye.add(be),setTimeout(()=>{const Ol=document.getElementById(Os(be));Ol&&Ol.scrollIntoView({behavior:"instant",block:"start"})},100)),Ye})},[I,K]=H.useState(null),{shouldReload:le,reload:re,watchState:J}=Im(async()=>{await kl()}),{cursor:me,isHelpOpen:he,setIsHelpOpen:it,setCursorPosition:Ba}=r0({files:r?.files||[],comments:z,viewMode:p,reviewedFiles:f,onToggleReviewed:q,onCreateComment:()=>{me&&K({fileIndex:me.fileIndex,chunkIndex:me.chunkIndex,lineIndex:me.lineIndex})},onCopyAllComments:()=>{z.length>0&&Yn()},onDeleteAllComments:()=>{z.length>0&&confirm("Delete all comments?")&&V()},onShowCommentsList:()=>{P(!0)}}),Jl=be=>{be.preventDefault(),$(!0);const Te=be.clientX,Ye=E,et=Zn=>{const cr=Math.max(200,Math.min(600,Ye+(Zn.clientX-Te)));N(cr)},Ol=()=>{$(!1),document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",Ol)};document.addEventListener("mousemove",et),document.addEventListener("mouseup",Ol)},Ha=be=>{const Te=["pnpm-lock.yaml","package-lock.json","yarn.lock","Cargo.lock","Gemfile.lock","composer.lock","Pipfile.lock","poetry.lock","go.sum","mix.lock"],Ye=be.split("/").pop()||"";return Te.includes(Ye)},kl=H.useCallback(async()=>{try{const be=await fetch(`/api/diff?ignoreWhitespace=${S}`);if(!be.ok)throw new Error("Failed to fetch diff data");const Te=await be.json();c(Te),Te.mode&&h(Te.mode);const Ye=Te.files.filter(et=>Ha(et.path)).map(et=>et.path);Ye.length>0&&o(et=>new Set([...et,...Ye]))}catch(be){b(be instanceof Error?be.message:"Unknown error")}finally{g(!1)}},[S]);H.useEffect(()=>{kl()},[kl]);const Il=H.useRef(!1);H.useEffect(()=>{r?.clearComments&&!Il.current&&(Il.current=!0,V(),console.log("✅ All existing comments cleared as requested via --clean flag"))},[r?.clearComments,V]),H.useEffect(()=>{r&&(f.size<r.files.length?oe(!1):f.size===r.files.length&&!pe&&(ne(!0),oe(!0),setTimeout(()=>{ne(!1)},1e3)))},[f.size,r,pe]),H.useEffect(()=>{if(z.length>0){const Te=JSON.stringify({comments:z});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:Te}).catch(Ye=>{console.error("Failed to sync comments:",Ye)})}const be=()=>{if(z.length>0){const Te=JSON.stringify({comments:z});navigator.sendBeacon("/api/comments",Te)}};return window.addEventListener("beforeunload",be),()=>{window.removeEventListener("beforeunload",be)}},[z]),H.useEffect(()=>{const be=new EventSource("/api/heartbeat");return be.onopen=()=>{console.log("Connected to server heartbeat")},be.onerror=()=>{console.log("Server connection lost"),be.close()},()=>{be.close()}},[]);const or=(be,Te,Ye,et)=>(ee(be,Te,Ye,et),Promise.resolve()),Yn=async()=>{try{const be=x();await navigator.clipboard.writeText(be),B(!0),setTimeout(()=>B(!1),2e3)}catch(be){console.error("Failed to copy all comments prompt:",be)}},At=be=>{if(!r)return;const Te=c0(be,r.files);Te&&Ba(Te)};return m?s.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:s.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):A?s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:A})]}):r?s.jsx(xy,{children:s.jsxs("div",{className:"h-screen flex flex-col",children:[s.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[s.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${F?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:j?`${E}px`:"auto",minWidth:j?"200px":"auto",maxWidth:j?"600px":"auto"},children:[s.jsx("h1",{children:s.jsx(Xm,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>U(!j),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:j?"Collapse file tree":"Expand file tree","aria-expanded":j,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:j?s.jsx(Wb,{size:18}):s.jsx(ey,{size:18})}),s.jsx("button",{onClick:()=>y(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:s.jsx(xg,{size:18})})]})]}),s.jsx("div",{className:`border-r border-github-border ${F?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:j?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),s.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[s.jsxs("button",{onClick:()=>h("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${p==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Lb,{size:14}),"Side by Side"]}),s.jsxs("button",{onClick:()=>h("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${p==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Ob,{size:14}),"Inline"]})]}),s.jsx(Sg,{checked:S,onChange:T,label:"Ignore Whitespace",title:S?"Show whitespace changes":"Ignore whitespace changes"}),s.jsx(Vm,{shouldReload:le,isReloading:J.isReloading,onReload:re,changeType:J.lastChangeType})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[z.length>0&&s.jsx(fy,{commentsCount:z.length,isCopiedAll:_,onCopyAll:Yn,onDeleteAll:V,onViewAll:()=>P(!0)}),s.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[s.jsxs("div",{className:"text-xs relative",children:[f.size===r.files.length?"All diffs difit-ed!":`${f.size} / ${r.files.length} files viewed`,s.jsx(Km,{isActive:se})]}),s.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:s.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(r.files.length-f.size)/r.files.length*100}%`,backgroundColor:(()=>{const be=(r.files.length-f.size)/r.files.length*100;return be>50?"var(--color-github-accent)":be>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),s.jsxs("span",{children:["Reviewing:"," ",s.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:r.commit.includes("...")?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-github-text-secondary font-medium",children:[r.commit.split("...")[0],"..."]}),s.jsx("span",{className:"font-medium",children:r.commit.split("...")[1]})]}):r.commit})]}),s.jsxs("span",{children:[r.files.length," file",r.files.length!==1?"s":""," changed"]})]})]})]}),s.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[s.jsx("div",{className:`relative overflow-hidden ${F?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:j?`${E}px`:"0px"},children:s.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${E}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsx(Gm,{files:r.files,onScrollToFile:be=>{const Te=document.getElementById(Os(be));Te&&Te.scrollIntoView({behavior:"smooth",block:"start"})},comments:z,reviewedFiles:f,onToggleReviewed:q})}),s.jsx("div",{className:"p-4 border-t border-github-border flex justify-end",children:s.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[s.jsx("span",{className:"text-sm",children:"Star on GitHub"}),s.jsx(Ym,{style:{height:"18px",width:"18px"}})]})})]})}),s.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${F?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:j?"4px":"0px"},onMouseDown:Jl,title:"Drag to resize file list"}),s.jsx("main",{className:"flex-1 overflow-y-auto",children:r.files.map((be,Te)=>s.jsx("div",{id:Os(be.path),className:"mb-6",children:s.jsx(Hm,{file:be,comments:z.filter(Ye=>Ye.file===be.path),diffMode:p,reviewedFiles:f,onToggleReviewed:q,onAddComment:or,onGeneratePrompt:te,onRemoveComment:O,onUpdateComment:Q,syntaxTheme:ie.syntaxTheme,baseCommitish:r.baseCommitish,targetCommitish:r.targetCommitish,cursor:me?.fileIndex===Te?me:null,fileIndex:Te,commentTrigger:I?.fileIndex===Te?I:null,onCommentTriggerHandled:()=>K(null)})},be.path))})]}),s.jsx($m,{isOpen:C,onClose:()=>y(!1),settings:ie,onSettingsChange:W}),s.jsx(Zm,{isOpen:he,onClose:()=>it(!1)}),s.jsx(dy,{isOpen:ce,onClose:()=>P(!1),onNavigate:At,comments:z,onRemoveComment:O,onGeneratePrompt:te,onUpdateComment:Q})]})}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const Ug=document.getElementById("root");if(!Ug)throw new Error("Root element not found");fb.createRoot(Ug).render(s.jsx(Gn.StrictMode,{children:s.jsx(Eb,{initiallyActiveScopes:["navigation"],children:s.jsx(f0,{})})}));export{ng as g};
|